mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 04:04:03 +03:00
[Web UI] does not display process with no result
This commit is contained in:
parent
3ad608e325
commit
c93093d39f
@ -3,7 +3,14 @@ glancesApp.service('GlancesPluginAmps', function() {
|
|||||||
this.processes = [];
|
this.processes = [];
|
||||||
|
|
||||||
this.setData = function(data, views) {
|
this.setData = function(data, views) {
|
||||||
this.processes = data[_pluginName];
|
var processes = data[_pluginName];
|
||||||
|
|
||||||
|
this.processes = [];
|
||||||
|
angular.forEach(processes, function(process, key) {
|
||||||
|
if (process.result !== null) {
|
||||||
|
this.processes.push(process);
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getDescriptionDecoration = function(process) {
|
this.getDescriptionDecoration = function(process) {
|
||||||
|
Loading…
Reference in New Issue
Block a user