progress
progress copied to clipboard
fix: check that ratio is not NaN
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