]> granicus.if.org Git - procps-ng/commit
top: fix 'TOG4_MEM_1UP' if two abreast summary display <=== port of newlib 124f26a4
authorJim Warner <james.warner@comcast.net>
Mon, 19 Sep 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 20 Sep 2022 09:34:40 +0000 (19:34 +1000)
commitcbc515e2080d06c786135f6d2b62d82a0b787cc0
treedb1dbe39f1e3878e5dc77a573da38c39e0c06ad2
parent2e84fdb05bb1cae537dfe26d5987479d320bfe2e
top: fix 'TOG4_MEM_1UP' if two abreast summary display <=== port of newlib 124f26a4

The 'unrelated' note reflected in the original message
doesn't apply since we already used that correct name.

______________________________ original newlib message

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>
top/top.c