Merge pull request #1382 from notFloran/webui-empty-cmd-line

[WebUI] Use process name when cmd line is empty
This commit is contained in:
Nicolas Hennion 2018-12-30 15:21:09 +01:00 committed by GitHub
commit d061d52eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -74,6 +74,10 @@ export default function GlancesPluginProcesslistController($scope, GlancesStats,
process.cmdline = process.cmdline.join(' ');
}
if (process.cmdline === null) {
process.cmdline = process.name;
}
if (data.isWindows) {
process.username = _.last(process.username.split('\\'));
}

View File

@ -41938,6 +41938,10 @@ function GlancesPluginProcesslistController($scope, GlancesStats, GlancesPluginH
process.cmdline = process.cmdline.join(' ');
}
if (process.cmdline === null) {
process.cmdline = process.name;
}
if (data.isWindows) {
process.username = _.last(process.username.split('\\'));
}

File diff suppressed because one or more lines are too long