From: Ondrej Lichtner <olichtne(a)redhat.com>
The function is used assuming that if a>b then the resulting difference
is going to be positive, however; the actual calculation of the
difference returns an inverse result - if a>b then the result is
negative.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/RecipeCommon/Perf/Results.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/RecipeCommon/Perf/Results.py b/lnst/RecipeCommon/Perf/Results.py
index e0d80aa..1b44cde 100644
--- a/lnst/RecipeCommon/Perf/Results.py
+++ b/lnst/RecipeCommon/Perf/Results.py
@@ -148,4 +148,4 @@ class ParallelPerfResult(PerfResult, PerfList):
def result_averages_difference(a, b):
if a is None or b is None:
return None
- return 100 - ((a.average / b.average) * 100)
+ return ((a.average / b.average) * 100) - 100
--
2.21.0