[Web UI] Fix process list sometimes not display on firefox

fix #839
This commit is contained in:
Nicolas Hart 2016-04-04 13:40:23 +02:00
parent d9bdce6848
commit 4208ab81e0

View File

@ -36,7 +36,9 @@ glancesApp.service('GlancesPluginProcessList', function($filter, GlancesPlugin)
process.isNice = process.nice !== undefined && ((data['system'].os_name === 'Windows' && process.nice != 32) || (data['system'].os_name !== 'Windows' && process.nice != 0)); process.isNice = process.nice !== undefined && ((data['system'].os_name === 'Windows' && process.nice != 32) || (data['system'].os_name !== 'Windows' && process.nice != 0));
process.cmdline = process.cmdline.join(' '); if (Array.isArray(process.cmdline)) {
process.cmdline = process.cmdline.join(' ');
}
this.processes.push(process); this.processes.push(process);
} }