mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 05:42:57 +03:00
🐛 Fix username handling when is null
This commit is contained in:
parent
47b2983f28
commit
6d9cbe831f
@ -78,10 +78,10 @@ export default function GlancesPluginProcesslistController($scope, GlancesStats,
|
||||
process.cmdline = process.name;
|
||||
}
|
||||
|
||||
if (data.isWindows) {
|
||||
if (data.isWindows && process.username !== null) {
|
||||
process.username = _.last(process.username.split('\\'));
|
||||
}
|
||||
|
||||
|
||||
vm.processes.push(process);
|
||||
}
|
||||
}
|
||||
|
4
glances/outputs/static/public/glances.js
vendored
4
glances/outputs/static/public/glances.js
vendored
@ -41949,10 +41949,10 @@ function GlancesPluginProcesslistController($scope, GlancesStats, GlancesPluginH
|
||||
process.cmdline = process.name;
|
||||
}
|
||||
|
||||
if (data.isWindows) {
|
||||
if (data.isWindows && process.username !== null) {
|
||||
process.username = _.last(process.username.split('\\'));
|
||||
}
|
||||
|
||||
|
||||
vm.processes.push(process);
|
||||
}
|
||||
}
|
||||
|
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