1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 20:31:16 +00:00

Fix device sync percentage (fixes #161).

This commit is contained in:
Felix Ableitner 2014-10-26 02:17:12 +03:00
parent 28cdb78e15
commit 6bb99f2ae4

View file

@ -612,7 +612,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
}
if (isShared) {
long global = mCachedModelInfo.get(id).globalBytes;
long local = mCachedModelInfo.get(id).localBytes;
long local = mCachedModelInfo.get(id).inSyncBytes;
percentageSum += (global != 0)
? (local * 100f) / global
: 100f;