1
0
Fork 0
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:
Felix Ableitner 2016-02-08 12:22:05 +01:00
parent 74674e3a41
commit c5f2abfe07

View file

@ -620,7 +620,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
}
}
return (folderCount != 0)
? (int) percentageSum / folderCount
? Math.round(percentageSum / folderCount)
: 100;
}