]> granicus.if.org Git - procps-ng/commit
top: fix 'TOG4_MEM_1UP' if two abreast summary display
authorJim Warner <james.warner@comcast.net>
Sun, 18 Sep 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 20 Sep 2022 08:50:55 +0000 (18:50 +1000)
commit124f26a423854614aae6bb9e4188e39cadb6b77c
treeb1b606a4f0cd72d88902534931a692d92b875334
parent602146a623a28b12552831c01aff87c934a3451e
top: fix 'TOG4_MEM_1UP' if two abreast summary display

If one per line display of Mem/Swap data was forced by
this #define, screen width was not fully exploited for
graph mode. Rather, those graphs were scaled just like
they would be if aligned with a nonexistent separator.

With this commit, those graphs will expand to fill the
screen width (or be limited by the maximum of '100' ).

[ and in unrelated news a variable used in do_memory ]
[ was changed for consistency. it doesn't affect the ]
[ the results since a part1 of swap was always zero. ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
src/top/top.c