progress icon indicating copy to clipboard operation
progress copied to clipboard

fix: check that ratio is not NaN

Open Fuco1 opened this issue 5 years ago • 0 comments

When both the current and total is set to 0, the division produces a NaN which propagates through min/max operations and can't be used as a boolean condition in an if, crashing the program with:

Error in if (percent == 100) { : missing value where TRUE/FALSE needed

Fuco1 avatar Nov 28 '20 20:11 Fuco1