Perpatch compare: avg_diff is not an int 86/23886/2
authorVratko Polak <vrpolak@cisco.com>
Mon, 9 Dec 2019 15:04:42 +0000 (16:04 +0100)
committerJan Gelety <jgelety@cisco.com>
Mon, 9 Dec 2019 16:04:42 +0000 (16:04 +0000)
Change-Id: I1d003cb517ef95c76002862e540497d8c40cb913
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/tools/integrated/compare_perpatch.py

index 72ae575..9058332 100644 (file)
@@ -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}")

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.