mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-01 14:08:34 +03:00
Remove empty battery in the web ui
This commit is contained in:
parent
31de5b3b1c
commit
9e2a72245c
@ -141,6 +141,10 @@ glancesApp.controller('statsController', function($scope, $http, $interval, $q,
|
||||
}
|
||||
}
|
||||
|
||||
_.remove(response['sensors'], function(sensor) {
|
||||
return sensor.type == "battery" && _.isArray(sensor.value) && _.isEmpty(sensor.value);
|
||||
});
|
||||
|
||||
$scope.is_bsd = response['system'].os_name === 'FreeBSD';
|
||||
$scope.is_linux = response['system'].os_name === 'Linux';
|
||||
$scope.is_mac = response['system'].os_name === 'Darwin';
|
||||
|
Loading…
Reference in New Issue
Block a user