Skip to content

Commit f4fc91e

Browse files
Do not print error on 0% change
1 parent 964e1a1 commit f4fc91e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/static/detailed-query.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h3 id="title"></h3>
7474
if (from == to) {
7575
pct = 0;
7676
}
77-
if (pct && pct != Infinity && pct != -Infinity) {
77+
if (pct != Infinity && pct != -Infinity) {
7878
let classes;
7979
if (pct > 1) {
8080
classes = "positive";
@@ -90,7 +90,7 @@ <h3 id="title"></h3>
9090
}
9191
return `<span class="${classes}" title="${from.toFixed(3)} to ${to.toFixed(3)}${delta.toFixed(3)}">${pct.toFixed(1)}%</span>`;
9292
} else {
93-
return `<span title="error" style="color: orange;">-</span>`;
93+
return `<span title="error pct=${pct}" style="color: orange;">-</span>`;
9494
}
9595
}
9696

0 commit comments

Comments
 (0)