perf hists browser: Fix column indentation on --hierarchy
authorNamhyung Kim <namhyung@kernel.org>
Tue, 8 Nov 2016 13:08:32 +0000 (22:08 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Nov 2016 14:45:58 +0000 (11:45 -0300)
commitb9bf911e990a189f89147ee6b66660a153ed0125
tree47a91d9a83be317d0b5cea11e585b4a4ac840051
parent131d51eb1d17aac3a604cf929fd99ff4dd34f495
perf hists browser: Fix column indentation on --hierarchy

When horizontall scrolling is used in hierarchy mode, the the right most
column has unnecessary indentation.  Actually it's needed only if some
of left (overhead) columns were shown.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20161108130833.9263-4-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c