🐛 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,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);
}
}

View File

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

File diff suppressed because one or more lines are too long