diff options
author | Nicolas Hennion <nicolashennion@gmail.com> | 2015-05-08 14:09:51 +0200 |
---|---|---|
committer | Nicolas Hennion <nicolashennion@gmail.com> | 2015-05-08 14:09:51 +0200 |
commit | 727e3d708d367fa30c7d39df652d107e427120bf (patch) | |
tree | c86261d133df53232dcb19f6a450d85f5917c3d4 /glances | |
parent | 938cf201da513ab51d9c88990124607122994c5f (diff) | |
parent | 59c06234f9b55e76c2e0c3f27274eb730dfea55e (diff) |
Merge pull request #585 from notFloran/web-ui-fix-limits
[Web UI] Use limits to highlight the values
Diffstat (limited to 'glances')
-rw-r--r-- | glances/outputs/static/js/stats_controller.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/glances/outputs/static/js/stats_controller.js b/glances/outputs/static/js/stats_controller.js index aacc0e2f..1720491a 100644 --- a/glances/outputs/static/js/stats_controller.js +++ b/glances/outputs/static/js/stats_controller.js @@ -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; /** |