Merge pull request #113 from SimonHeimberg/patch-1
use dict keys for hint in oom-sort
This commit is contained in:
commit
2da9637ad8
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user