[Web UI] remove domain from username in processlist

This commit is contained in:
Nicolas Hart 2017-04-14 22:41:59 +02:00
parent 25ee7bab66
commit 32a89419e5
2 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,10 @@ glancesApp.service('GlancesPluginProcessList', function($filter, GlancesPlugin)
process.cmdline = process.cmdline.join(' '); process.cmdline = process.cmdline.join(' ');
} }
if (data['system'].os_name === 'Windows') {
process.username = _.last(process.username.split('\\'));
}
this.processes.push(process); this.processes.push(process);
} }
}; };

View File

@ -1265,6 +1265,10 @@ glancesApp.service('GlancesPluginProcessList', ["$filter", "GlancesPlugin", func
process.cmdline = process.cmdline.join(' '); process.cmdline = process.cmdline.join(' ');
} }
if (data['system'].os_name === 'Windows') {
process.username = _.last(process.username.split('\\'));
}
this.processes.push(process); this.processes.push(process);
} }
}; };