mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
perf top tui: Give color hints just on the percentage, like on --stdio
And like it was in the old top. Another change so that the familiarity with the old visual is maintained. Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
@@ -579,6 +579,9 @@ static int hist_browser__show_entry(struct hist_browser *self,
|
||||
if (!self->b.navkeypressed)
|
||||
width += 1;
|
||||
|
||||
if (!current_entry || !self->b.navkeypressed)
|
||||
ui_browser__set_color(&self->b, HE_COLORSET_NORMAL);
|
||||
|
||||
slsmg_write_nstring(s, width);
|
||||
++row;
|
||||
++printed;
|
||||
|
||||
Reference in New Issue
Block a user