Skip to content

Commit

Permalink
Fix yellow at percent calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
cipi1965 committed Aug 31, 2024
1 parent 3e75f55 commit 8f8857f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/TimerEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class TimerEngine {
}

if (this.options.yellowAtOption === 'percent'
&& this.options.yellowAt >= this._timer.secondsSet / 100 * this._currentSeconds) {
&& this.options.yellowAt >= this._currentSeconds * 100 / this._timer.secondsSet) {
return true;
}

Expand Down

0 comments on commit 8f8857f

Please sign in to comment.