From 4208ab81e0ed4dbd700b58e2eb88a019fe2dccbe Mon Sep 17 00:00:00 2001 From: Nicolas Hart Date: Mon, 4 Apr 2016 13:40:23 +0200 Subject: [PATCH] [Web UI] Fix process list sometimes not display on firefox fix #839 --- .../outputs/static/js/services/plugins/glances_processlist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glances/outputs/static/js/services/plugins/glances_processlist.js b/glances/outputs/static/js/services/plugins/glances_processlist.js index 42198501..d6ef0d7f 100644 --- a/glances/outputs/static/js/services/plugins/glances_processlist.js +++ b/glances/outputs/static/js/services/plugins/glances_processlist.js @@ -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.cmdline = process.cmdline.join(' '); + if (Array.isArray(process.cmdline)) { + process.cmdline = process.cmdline.join(' '); + } this.processes.push(process); }