]> granicus.if.org Git - procps-ng/commit
top: refined memory graphs two abreast summary display
authorJim Warner <james.warner@comcast.net>
Mon, 12 Sep 2022 18:13:13 +0000 (13:13 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 13 Sep 2022 09:55:17 +0000 (19:55 +1000)
commit5c5bff392bfaf78b7bacb9b954c1fd1e9d818544
tree6d98fb13b2799d580db3da7d7f637c81dd69dc03
parent3543172d4b6aaa75cdcd8d1ab29d0bda7a50b452
top: refined memory graphs two abreast summary display

When more than two cpus are displayed per summary area
line in graph form, those memory graphs were scaled to
that same width for consistency & aesthetics. However,
they probably shouldn't have been reduced to less than
terminal width due to a resulting loss of information.

[ after all, detailed memory stats are never reduced ]

So now, supporting logic was refactored to behave just
as it did before the 4 toggle was expanded beyond '1'.

[ the changes impact the 2 memory graphs exclusively ]

Reference(s):
https://www.freelists.org/post/procps/top-enhancements-2-bugs-swatted,1

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