Fix syntax error

This commit is contained in:
Firepup Sixfifty 2024-08-16 02:12:16 +00:00
parent c5390c3909
commit ae1da8eac7
Signed by: firepup650
SSH key fingerprint: SHA256:U0Zp8EhEe3CMqFSrC79CqatzaEiL4sjta80/RSX2XrY

View file

@ -177,7 +177,7 @@ function predictSpeed(goalDate, goalNumber, currentNumber) {
let daysRemaining
if (timeRemaining >= 0) {
daysRemaining = Math.ceil(timeRemaining / (1000 * 60 * 60 * 24));
else {
} else {
daysRemaining = math.floor(timeRemaining / (1000 * 60 * 60 * 24));
}
let neededSpeed = (goalNumber - currentNumber) / Math.abs(daysRemaining);