From: Vratko Polak Date: Mon, 9 Dec 2019 15:04:42 +0000 (+0100) Subject: Perpatch compare: avg_diff is not an int X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=870829e027772cdad6b69794bce63f0458121f1a Perpatch compare: avg_diff is not an int Change-Id: I1d003cb517ef95c76002862e540497d8c40cb913 Signed-off-by: Vratko Polak --- diff --git a/resources/tools/integrated/compare_perpatch.py b/resources/tools/integrated/compare_perpatch.py index 72ae5751d3..9058332158 100644 --- a/resources/tools/integrated/compare_perpatch.py +++ b/resources/tools/integrated/compare_perpatch.py @@ -100,7 +100,7 @@ for test_index in range(num_tests): [current_stats]) print(f"Value-ordered MRR values for parent build: {parent_values}") print(f"Value-ordered MRR values for current build: {current_values}") - avg_diff = (current_stats.avg - parent_stats.avg) // parent_stats.avg + avg_diff = (current_stats.avg - parent_stats.avg) / parent_stats.avg print(f"Difference of averages relative to parent: {100 * avg_diff}%") print(f"Jumpavg representation of parent group: {parent_stats}") print(f"Jumpavg representation of current group: {current_stats}")