mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-30 21:49:37 +03:00
Merge pull request #1382 from notFloran/webui-empty-cmd-line
[WebUI] Use process name when cmd line is empty
This commit is contained in:
commit
d061d52eba
@ -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('\\'));
|
||||
}
|
||||
|
4
glances/outputs/static/public/glances.js
vendored
4
glances/outputs/static/public/glances.js
vendored
@ -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('\\'));
|
||||
}
|
||||
|
2
glances/outputs/static/public/glances.map.js
vendored
2
glances/outputs/static/public/glances.map.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user