Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2d04236
)
C-Dash: Fix: Zero division error
56/41056/1
author
Tibor Frank
<
[email protected]
>
Tue, 28 May 2024 08:21:08 +0000
(08:21 +0000)
committer
Tibor Frank
<
[email protected]
>
Tue, 4 Jun 2024 09:25:57 +0000
(09:25 +0000)
Change-Id: Ie3a61153c3e286f196617be438c2056a001b6faa
Signed-off-by: Tibor Frank <
[email protected]
>
(cherry picked from commit
8e60591baa0f4460dc4b6cd8c0252b10f299354d
)
csit.infra.dash/app/cdash/comparisons/tables.py
patch
|
blob
|
history
diff --git
a/csit.infra.dash/app/cdash/comparisons/tables.py
b/csit.infra.dash/app/cdash/comparisons/tables.py
index
0e32f38
..
5f6ba2d
100644
(file)
--- a/
csit.infra.dash/app/cdash/comparisons/tables.py
+++ b/
csit.infra.dash/app/cdash/comparisons/tables.py
@@
-315,11
+315,13
@@
def comparison_table(
else:
c_row = c_data[c_data["name"] == row["name"]]
if not c_row.empty:
- unit.add(f"{s_unit_factor}{row['unit']}")
r_mean = row["mean"]
r_std = row["stdev"]
c_mean = c_row["mean"].values[0]
c_std = c_row["stdev"].values[0]
+ if r_mean == 0.0 or c_mean == 0.0:
+ break
+ unit.add(f"{s_unit_factor}{row['unit']}")
l_name.append(row["name"])
l_r_mean.append(r_mean / unit_factor)
l_r_std.append(r_std / unit_factor)