Skip to content

Commit

Permalink
perf top tui: Give color hints just on the percentage, like on --stdio
Browse files Browse the repository at this point in the history
And like it was in the old top.

Another change so that the familiarity with the old visual is maintained.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-ypmyx9p0ah4byqaygrnb09x8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Arnaldo Carvalho de Melo committed Oct 18, 2011
1 parent e039fc7 commit 33f62b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/perf/util/ui/browsers/hists.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33f62b3

Please sign in to comment.