Skip to content

Commit 6eba601

Browse files
authored
Merge pull request #7 from mattip/avoid-zero
avoid zero values when calculating geomean
2 parents fb121f5 + c4e1e8c commit 6eba601

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

speed_pypy/templates/home.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ <h3>How has {{ default_exe.project }} performance evolved over time?</h3>
108108
plotdata[0].push(relative_value);
109109
plotdata[1].push(1.0);
110110
labels.push(relative_value.toFixed(2));
111-
trunk_geomean *= relative_value;
111+
if (relative_value > 0) {
112+
trunk_geomean *= relative_value;
113+
}
112114
}
113115
trunk_geomean = Math.pow(trunk_geomean, 1/plotdata[0].length);
114116
var geofaster = 1/trunk_geomean;

0 commit comments

Comments
 (0)