diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-14 23:58:32 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-14 23:58:32 +0000 |
commit | 581f9652db8184a02fcb9efd74fc9f621baba12c (patch) | |
tree | 5f52b1bc8d7ee37cdd2e92f7429f45107cd5f48d /src/app.py | |
parent | debian: 2.4.2-1 (diff) | |
parent | top: fix -E/-e arguments on newer top's (diff) | |
download | linux-status-581f9652db8184a02fcb9efd74fc9f621baba12c.tar.gz linux-status-581f9652db8184a02fcb9efd74fc9f621baba12c.zip |
Merge tag 'v2.4.3' into debian
Diffstat (limited to 'src/app.py')
-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 |