]> granicus.if.org Git - procps-ng/commit
top: afford each window its own cpu/memory graph modes
authorJim Warner <james.warner@comcast.net>
Fri, 27 Jun 2014 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 28 Jun 2014 13:46:40 +0000 (23:46 +1000)
commit96c330e3b33aeec75d5210b8bd9e4c33e4135a13
treee11e28c777a661609e41d7558c530e202cef3f95
parent805532ac32610279f381e2510b8cbaac6c625903
top: afford each window its own cpu/memory graph modes

When those new cpu/memory graphs modes were introduced
they had global impact. In other words, the modes that
were chosen for a 'current' window affect Summary Area
appearance for every other window as well, even though
each window sets unique View_STATES/View_MEMORY flags.

I do not know how widespread the use of top's separate
window provisions is, but I do know that documentation
promises every window (field group) provides "a unique
separately configurable summary area". And even though
that promise does not include memory scaling (separate
'E' command) the graph modes are integral to 't' & 'm'
and those were already observed on a per window basis.

So this patch just takes the cpu and memory graph mode
values out of global scope in the configuration file &
gives each window its own unique pair of graph values.

Reference(s):
commit 1d171ec74163f3103e7b230ee63818df04b4526f

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