|
|
|
@ -43,7 +43,7 @@ app.controller('Servers', function ($scope, $window, $http) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$scope.serverTotals = (type) => {
|
|
|
|
$scope.serverTotals = (type) => {
|
|
|
|
localStorage.setItem("servers", angular.toJson($scope.servers));
|
|
|
|
localStorage.setItem("servers", angular.toJson($scope.servers));
|
|
|
|
return $scope.servers.reduce(function (a, b) {
|
|
|
|
return $scope.servers?.reduce(function (a, b) {
|
|
|
|
return a + (b?.[type] ?? 0);
|
|
|
|
return a + (b?.[type] ?? 0);
|
|
|
|
}, 0);
|
|
|
|
}, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|