Report all rates in bytes per second (fixes #934)

This commit is contained in:
Jakob Borg
2014-11-26 17:30:52 +01:00
parent ed85bfa915
commit 34cb305755
4 changed files with 10 additions and 37 deletions

View File

@@ -320,8 +320,8 @@ angular.module('syncthing.core')
continue;
}
try {
data[id].inbps = Math.max(0, 8 * (data[id].InBytesTotal - $scope.connections[id].InBytesTotal) / td);
data[id].outbps = Math.max(0, 8 * (data[id].OutBytesTotal - $scope.connections[id].OutBytesTotal) / td);
data[id].inbps = Math.max(0, (data[id].InBytesTotal - $scope.connections[id].InBytesTotal) / td);
data[id].outbps = Math.max(0, (data[id].OutBytesTotal - $scope.connections[id].OutBytesTotal) / td);
} catch (e) {
data[id].inbps = 0;
data[id].outbps = 0;