mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 04:04:03 +03:00
Fix loading of limits
Remove useless method Fix variable name of plugins
This commit is contained in:
parent
5d8b177c4f
commit
59c06234f9
@ -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