Skip to content

Commit

Permalink
gui: Round down in devices completion (consistent with folders)
Browse files Browse the repository at this point in the history
GitHub-Pull-Request: syncthing#4325
  • Loading branch information
imsodin authored and calmh committed Aug 24, 2017
1 parent a69ba18 commit c7221b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/default/syncthing/core/syncthingController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c7221b0

Please sign in to comment.