From c7221b035d94d459fe8bbe1e88df67b7d320b216 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Thu, 24 Aug 2017 04:26:12 +0000 Subject: [PATCH] gui: Round down in devices completion (consistent with folders) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4325 --- gui/default/syncthing/core/syncthingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index db2eb72d0..8aad64176 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -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 }