diff options
| author | Riku Voipio <[email protected]> | 2016-07-26 15:21:20 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-07-26 16:19:19 -0700 |
| commit | 8cde0daf6c4cca8babec4861a1ce7f8875edf879 (patch) | |
| tree | ef8a261473766fa1a295113bd666fb9fc2091977 /tools/perf/scripts/python | |
| parent | c965b105bf1509beefbb78d33f721d92240a770c (diff) | |
scripts/bloat-o-meter: fix percent on <1% changes
Python divisions are integer divisions unless at least one parameter is
a float. The current bloat-o-meter fails to print sub-percentage
changes:
Total: Before=10515408, After=10604060, chg 0.000000%
Force float division by using one float and pretty the print to two
significant decimals:
Total: Before=10515408, After=10604060, chg +0.84%
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Riku Voipio <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Cc: Vineet Gupta <[email protected]>
Cc: Michal Marek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions