Merge pull request #113 from SimonHeimberg/patch-1

use dict keys for hint in oom-sort
This commit is contained in:
Alexey Avramov 2021-01-01 20:49:20 +09:00 committed by GitHub
commit 2da9637ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,9 +96,7 @@ sort_by = args.sort
if sort_by not in sort_dict:
print('Invalid -s/--sort value. Valid values are:\nPID\noom_scor'
'e [default value]\noom-sore_adj\nUID\nName\ncmdline\nVmR'
'SS\nVmSwap')
print('Invalid -s/--sort value. Valid values are:\n' + '\n'.join(sort_dict) + '\n default is oom_score')
exit()