mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 04:41:16 +00:00
Fix device sync percentage (fixes #161).
This commit is contained in:
parent
28cdb78e15
commit
6bb99f2ae4
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
|
||||||
}
|
}
|
||||||
if (isShared) {
|
if (isShared) {
|
||||||
long global = mCachedModelInfo.get(id).globalBytes;
|
long global = mCachedModelInfo.get(id).globalBytes;
|
||||||
long local = mCachedModelInfo.get(id).localBytes;
|
long local = mCachedModelInfo.get(id).inSyncBytes;
|
||||||
percentageSum += (global != 0)
|
percentageSum += (global != 0)
|
||||||
? (local * 100f) / global
|
? (local * 100f) / global
|
||||||
: 100f;
|
: 100f;
|
||||||
|
|
Loading…
Reference in a new issue