Filter apps in memory graph which use below 1Gb
This commit is contained in:
@@ -169,7 +169,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
|
||||
var timePeriod = $scope.graphs.period * 60;
|
||||
var timeBucketSize = $scope.graphs.period > 24 ? (6*60) : 5;
|
||||
|
||||
function fillGraph(canvasId, data, additionalData, label, chartPropertyName, max, valueDivider) {
|
||||
function fillGraph(canvasId, data, appsData, label, chartPropertyName, max, valueDivider) {
|
||||
// translate the data from bytes to MB
|
||||
var datapoints = data.datapoints.map(function (d) { return parseInt((d[0] / valueDivider).toFixed(2)); });
|
||||
var labels = datapoints.map(function (d, index) {
|
||||
@@ -191,8 +191,10 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
|
||||
data: datapoints
|
||||
}];
|
||||
|
||||
if (Array.isArray(additionalData)) {
|
||||
additionalData.forEach(function (data, index) {
|
||||
if (Array.isArray(appsData)) {
|
||||
appsData.forEach(function (data, index) {
|
||||
if (!data.datapoints.some(function (p) { return p[0] > 1024*1024*1024; })) return;
|
||||
|
||||
datasets.push({
|
||||
label: apps[index].fqdn,
|
||||
fill: false,
|
||||
|
||||
Reference in New Issue
Block a user