Merge pull request #585 from notFloran/web-ui-fix-limits

[Web UI] Use limits to highlight the values
This commit is contained in:
Nicolas Hennion 2015-05-08 14:09:51 +02:00
commit 727e3d708d

View File

@ -48,7 +48,11 @@ glancesApp.controller('statsController', function($scope, $http, $interval, $q,
}
$scope.init_limits = function() {
$scope.plugins_limits();
$http.get('/api/2/all/limits').success(function(response, status, headers, config) {
$scope.pluginLimits = response
}).error(function(response, status, headers, config) {
console.log('error : ' + response+ status + headers + config);
});
}
$scope.init_help = function() {
@ -65,14 +69,6 @@ glancesApp.controller('statsController', function($scope, $http, $interval, $q,
}
}
$scope.plugins_limits = function() {
$http.get('/api/2/all/limits').success(function(response, status, headers, config) {
$scope.limits = response
}).error(function(response, status, headers, config) {
console.log('error : ' + response+ status + headers + config);
});
}
var canceler = undefined;
/**