Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Dec 5, 2020
1 parent 2b05e94 commit 11971d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -8243,9 +8243,9 @@ function formatDifference({ absolute, percentChange: relative }) {
let word, rel, abs;
if (Math.round(relative.low) == 0 && Math.round(relative.high) == 0) {
// Our formatting for percents uses `.toFixed(0)`. In cases where we would
// show 0% - 0% but the actual result is actually not zero (i.e. -0.5 - 0.4)
// let's still show the result as unsure to avoid a situation where we would
// display something like "slower ❌ 0% - 0% (0.00ms - 0.00ms)"
// show 0% - 0% but the actual result is actually not zero (i.e. -0.5% to
// 0.4%) let's still show the result as unsure to avoid a situation where we
// would display something like "slower ❌ 0% - 0% (0.00ms - 0.00ms)"
word = `<strong>unsure ❔</strong>`; // bold blue
rel = formatConfidenceInterval(relative, (n) => colorizeSign(n, percent));
abs = formatConfidenceInterval(absolute, (n) => colorizeSign(n, milli));
Expand Down
6 changes: 3 additions & 3 deletions src/utils/tachometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ function formatDifference({ absolute, percentChange: relative }) {
let word, rel, abs;
if (Math.round(relative.low) == 0 && Math.round(relative.high) == 0) {
// Our formatting for percents uses `.toFixed(0)`. In cases where we would
// show 0% - 0% but the actual result is actually not zero (i.e. -0.5 - 0.4)
// let's still show the result as unsure to avoid a situation where we would
// display something like "slower ❌ 0% - 0% (0.00ms - 0.00ms)"
// show 0% - 0% but the actual result is actually not zero (i.e. -0.5% to
// 0.4%) let's still show the result as unsure to avoid a situation where we
// would display something like "slower ❌ 0% - 0% (0.00ms - 0.00ms)"
word = `<strong>unsure ❔</strong>`; // bold blue
rel = formatConfidenceInterval(relative, (n) => colorizeSign(n, percent));
abs = formatConfidenceInterval(absolute, (n) => colorizeSign(n, milli));
Expand Down

0 comments on commit 11971d5

Please sign in to comment.