mirror of
https://github.com/nicolargo/glances.git
synced 2024-09-21 09:37:20 +03:00
Merge pull request #585 from notFloran/web-ui-fix-limits
[Web UI] Use limits to highlight the values
This commit is contained in:
commit
727e3d708d
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user