perf annotate TUI: Fix --show-total-period
authorTaeung Song <treeze.taeung@gmail.com>
Thu, 27 Jul 2017 14:33:20 +0000 (11:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 28 Jul 2017 15:53:06 +0000 (12:53 -0300)
commit29dc267f270a4ad5ae1341e7fdc8539ac7dc907a
treec47ec20a70a0a502d7f2dadd18d49d4bc6161e66
parentbb79a232b0881ce47f921a53f40612a9f9996482
perf annotate TUI: Fix --show-total-period

We were showing the number of samples, not the total period, fix it.

Reported-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Martin Liška <mliska@suse.cz>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Fixes: 0c4a5bcea460 ("perf annotate: Display total number of samples with --show-total-period")
Link: http://lkml.kernel.org/r/1500500223-16753-1-git-send-email-treeze.taeung@gmail.com
[ extracted from a larger patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c