| Index: tools/perf/metrics/smoothness.py
|
| diff --git a/tools/perf/metrics/smoothness.py b/tools/perf/metrics/smoothness.py
|
| index b262c89450b6c080c7f69c6e4a583272b095ae84..40b9e434411e3a31b96d0f4fa32418f2999768f0 100644
|
| --- a/tools/perf/metrics/smoothness.py
|
| +++ b/tools/perf/metrics/smoothness.py
|
| @@ -87,7 +87,11 @@ def Average(numerator, denominator, scale = None, precision = None):
|
| avg = numerator_total / denominator_total
|
| if scale:
|
| avg *= scale
|
| - if precision:
|
| + if precision == None:
|
| + pass
|
| + elif precision == 0:
|
| + avg = int(avg)
|
| + else:
|
| avg = round(avg, precision)
|
| return avg
|
|
|
|
|