Skip to content

Commit a3675d5

Browse files
Proper skull-and-bones for the combined metric
1 parent 2d943b4 commit a3675d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ <h2>Detailed Comparison</h2>
681681
const hot_timing = (timings[1] !== null && timings[2] !== null ? Math.min(timings[1], timings[2]) : null);
682682

683683
return metric == 'cold' ? cold_timing : metric == 'hot' ? hot_timing :
684-
((hot_timing * combined_hot_share + cold_timing * combined_cold_share) / (combined_hot_share + combined_cold_share));
684+
(hot_timing !== null && cold_timing !== null ? (hot_timing * combined_hot_share + cold_timing * combined_cold_share) / (combined_hot_share + combined_cold_share) : null);
685685
}
686686

687687
function relativeQueryTime(num_queries, baseline_data, elem, metric) {

0 commit comments

Comments
 (0)