mirror of https://github.com/nicolargo/glances
[Web UI] does not display process with no result
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