]> granicus.if.org Git - procps-ng/commit
top: better graphic scaling in cpu/mem summary display <=== port of newlib 8c69e66a
authorJim Warner <james.warner@comcast.net>
Mon, 12 Sep 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 13 Sep 2022 10:08:22 +0000 (20:08 +1000)
commitf07eea2898fa124abc70e103db35e50aa67fbcf8
treea81578d64f8a6a059d95c5d468d10f05ddf91f5f
parent737e6f5b594c07f4ab9d6b50df5ff80abf2863f2
top: better graphic scaling in cpu/mem summary display <=== port of newlib 8c69e66a

______________________________ original newlib message

This program has always been sensitive to the width of
a terminal/console. The detailed cpu/memory statistics
plus all of those full screen replacement windows were
designed to fit within some 80 column, 24 row display.

When a user narrowed a gui terminal to less than those
dimensions, top would simply truncate the data to fit.
However, when displaying cpu/mem graphs instead of the
detailed statistics such truncation was not justified.
After all, such graphs were already scaled to 80 cols.

Henceforth, when in graph mode, truncation won't occur
until the graphs will no longer fit within 10 columns.

[ can you keep a secret? this change is really being ]
[ made in anticipation of showing more than just two ]
[ cpu graphs in the summary area on each screen row! ]

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