mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-30 21:49:37 +03:00
🐛 Fix username handling when is null
This commit is contained in:
parent
47b2983f28
commit
6d9cbe831f
@ -78,7 +78,7 @@ 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('\\'));
|
||||
}
|
||||
|
||||
|
2
glances/outputs/static/public/glances.js
vendored
2
glances/outputs/static/public/glances.js
vendored
@ -41949,7 +41949,7 @@ function GlancesPluginProcesslistController($scope, GlancesStats, GlancesPluginH
|
||||
process.cmdline = process.name;
|
||||
}
|
||||
|
||||
if (data.isWindows) {
|
||||
if (data.isWindows && process.username !== null) {
|
||||
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