mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 22:31:16 +00:00
Use Math.round() instead of cast for device percentage (fixes #197).
This commit is contained in:
parent
74674e3a41
commit
c5f2abfe07
1 changed files with 1 additions and 1 deletions
|
@ -620,7 +620,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
|
|||
}
|
||||
}
|
||||
return (folderCount != 0)
|
||||
? (int) percentageSum / folderCount
|
||||
? Math.round(percentageSum / folderCount)
|
||||
: 100;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue