diff --git a/src/views/app.html b/src/views/app.html index ffc8315c0..3f8c759f5 100644 --- a/src/views/app.html +++ b/src/views/app.html @@ -822,13 +822,9 @@
  • 30 days
  • -
    -
    - - - + - + diff --git a/src/views/system.html b/src/views/system.html index 0f42dc31a..54ea4b8a2 100644 --- a/src/views/system.html +++ b/src/views/system.html @@ -102,7 +102,7 @@
    - +
    diff --git a/src/views/system.js b/src/views/system.js index 3eb6f9ee8..14555fd98 100644 --- a/src/views/system.js +++ b/src/views/system.js @@ -331,13 +331,13 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati $scope.graphs[chartPropertyName] = new Chart(ctx, { type: 'line', data: data, options: options }); } - var systemMemoryuery = 'summarize(sum(collectd.localhost.memory.memory-used, collectd.localhost.swap.swap-used), "' + timeBucketSize + 'min", "avg")'; + var systemMemoryQuery = 'summarize(sum(collectd.localhost.memory.memory-used, collectd.localhost.swap.swap-used), "' + timeBucketSize + 'min", "avg")'; var cpuQuery = 'summarize(sum(collectd.localhost.aggregation-cpu-average.cpu-system, collectd.localhost.aggregation-cpu-average.cpu-user), "' + timeBucketSize + 'min", "avg")'; - Client.graphs([ systemMemoryuery, cpuQuery ], '-' + timePeriod + 'min', {}, function (error, result) { + Client.graphs([ systemMemoryQuery, cpuQuery ], '-' + timePeriod + 'min', {}, function (error, result) { if (error) return console.error(error); - fillGraph('#graphsSystemMemoryChart', result[0], 'Memory', 'memoryChart', Number.parseInt($scope.memory.memory / 1024 / 1024), 1024 * 1024); + fillGraph('#graphsSystemMemoryChart', result[0], 'Memory', 'memoryChart', Number.parseInt(($scope.memory.memory + $scope.memory.swap) / 1024 / 1024), 1024 * 1024); fillGraph('#graphsCPUChart', result[1], 'CPU Usage', 'cpuChart', 100, 1); }); }