[Web UI] does not display process with no result

pull/860/head
Nicolas Hart 2016-05-03 22:31:16 +02:00
parent 3ad608e325
commit c93093d39f
1 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,14 @@ glancesApp.service('GlancesPluginAmps', function() {
this.processes = [];
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) {