Skip to content

Commit

Permalink
fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyRosenblum committed Apr 2, 2024
1 parent 57b11be commit 3fe6a14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/interop/runner.patch
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ index 09e2fdd..72513c8 100644
"role": "both"
},
diff --git a/interop.py b/interop.py
index 8f2769b..5a20a80 100644
index 8f2769b..7af0657 100644
--- a/interop.py
+++ b/interop.py
@@ -123,6 +123,7 @@ class InteropRunner:
Expand Down Expand Up @@ -91,14 +91,15 @@ index 8f2769b..5a20a80 100644
res = MeasurementResult()
res.result = TestResult.SUCCEEDED
- res.details = "{:.0f} (± {:.0f}) {}".format(
- statistics.mean(values), statistics.stdev(values), test.unit()
- )
+ if len(values) == 1:
+ res.details = "{:.0f} {}".format(
+ values[0], test.unit()
+ )
+ else:
+ res.details = "{:.0f} (± {:.0f}) {}".format(
statistics.mean(values), statistics.stdev(values), test.unit()
- )
+ statistics.mean(values), statistics.stdev(values), test.unit()
+ )
return res

Expand Down

0 comments on commit 3fe6a14

Please sign in to comment.