diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-15 01:52:59 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-15 01:52:59 +0200 |
commit | 27c555883ced250077796bc54f2d5eca0e5c35af (patch) | |
tree | 821553b34dda05197a10f29917c6f12ac6b86ab5 | |
parent | html: prevent power buttons from jumping (diff) | |
download | linux-status-2.4.3.tar.gz linux-status-2.4.3.zip |
top: fix -E/-e arguments on newer top'sv2.4.3
Diffstat (limited to '')
-rwxr-xr-x | src/app.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -398,8 +398,12 @@ class Top(Command): return Top.COMMAND help_output = run_do('top', '-h') args = ['top', '-b', '-n', '1', '-w', '512'] + memory_scaling_args = ['-E', 'm', '-e', 'm'] if 'Ee' in help_output: - args += ['-E', 'm', '-e', 'm'] + args += memory_scaling_args + else: + if '-E, ' in help_output and '-e, ' in help_output: + args += memory_scaling_args Top.COMMAND = args return Top.COMMAND |