Skip to content

Commit

Permalink
monitors: Oops - do that addition arithmetically thanks!
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Nov 29, 2024
1 parent 63cf753 commit 3dd9b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpstatic/chan_monitors.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function update_tierpicker() { //TODO: If infinite tiers, add one more past the
//after that (so you can always advance to the next tier).
if (progressive) {
const delta = +thresholds[which] - +(thresholds[which - 1]||0);
if (delta > 0) thresholds.push(thresholds[which] + delta);
if (delta > 0) thresholds.push(+thresholds[which] + delta);
}
else if (thresholds[which] > 0) thresholds.push(thresholds[which]);
}
Expand Down

0 comments on commit 3dd9b7c

Please sign in to comment.