🐛 Fix username handling when is null

This commit is contained in:
Floran Brutel 2019-04-22 12:58:55 +02:00
parent 47b2983f28
commit 6d9cbe831f
No known key found for this signature in database
GPG Key ID: 0A61C46D590F5999
3 changed files with 5 additions and 5 deletions

View File

@ -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('\\'));
}

View File

@ -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('\\'));
}

File diff suppressed because one or more lines are too long