Skip to content

Commit

Permalink
Update cli.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Nov 5, 2024
1 parent aaaba91 commit 82e05cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ export const handleOppsRecord = (
// round down to nearest int to be more conservative and avoid float
const stdvsRoundown = Math.floor(Math.sqrt(sumOfSquaresAvg));
// hitting upper bound is totally fine, we only care about hitting lower bound
const stdvsLowerBound = avg - stdvsRoundown;
const stdvsLowerBound = avg - stdvsRoundown < 0 ? 0 : avg - stdvsRoundown;
previousRecords.push(oppCount);
if (previousRecords.length > recordSize) {
previousRecords.splice(0, previousRecords.length - recordSize);
Expand Down

0 comments on commit 82e05cd

Please sign in to comment.