diff options
author | Andi Kleen <ak@linux.intel.com> | 2016-05-06 02:04:03 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-05-17 05:11:13 +0300 |
commit | e3b03b6c1a4f3b4564be08809f58584592621a0a (patch) | |
tree | 6b2fed2e169c8750ef1d447ac9fc7824ea76c9d5 /tools/perf/util | |
parent | 3f56e687a138481894a1088d5aa7d41951bdb020 (diff) | |
download | linux-e3b03b6c1a4f3b4564be08809f58584592621a0a.tar.xz |
perf stat: Avoid fractional digits for integer scales
When the scaling factor is a full integer don't display fractional
digits. This avoids unnecessary .00 output for topdown metrics with
scale factors.
v2: Remove redundant check.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1462489447-31832-7-git-send-email-andi@firstfloor.org
[ Rename 'round' to 'stat_round' as 'round' is defined in math.h,
included by this patch, and this breaks the build on ubuntu 12.04 ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
0 files changed, 0 insertions, 0 deletions