Quantcast
Channel: Syncthing Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 6195

How to correct Linear file sync progress percentage

$
0
0

Hello everyone! I have some problem with correct calculating synchronization progress. I use GET /rest/db/status for getting infomation of sync folder and try to calculate by this formela:

    result = Math.Floor(100 * (1 - (neededBytes / totalBytes)))); 

So I getting valid percentage, but I would like to other way of calculate. F.e there are files in the sync folder and they are synchronized. Next I add the files to the folder and I would like to get percentage from 0 - 100% like a copy progress not from current state% - 100%.

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 6195

Trending Articles