gui: Round down in devices completion (consistent with folders)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4325
This commit is contained in:
Simon Frei 2017-08-24 04:26:12 +00:00 committed by Jakob Borg
parent a69ba18f62
commit c7221b035d
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ angular.module('syncthing.core')
$scope.completion[device]._total = 100;
$scope.completion[device]._needBytes = 0;
} else {
$scope.completion[device]._total = 100 * (1 - needed / total);
$scope.completion[device]._total = Math.floor(100 * (1 - needed / total));
$scope.completion[device]._needBytes = needed
}