diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-18 15:54:24 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-18 17:03:46 -0200 |
commit | 33f62b3fc4edd46d80c4420b81dfcb267c8bdb5e (patch) | |
tree | 588ce87db30e179886fd8655d55a04023fa172e6 | |
parent | e039fc727c40c5541bb22aed7f7030dea3e6fb7a (diff) |
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]>
-rw-r--r-- | tools/perf/util/ui/browsers/hists.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index 0eced19e3bdb..936e641e9f86 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c @@ -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; |