fix: floor

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-13 14:59:29 +00:00 committed by GitHub
parent 714206a924
commit bef8ecdf45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ function tick() {
}
hAngle = Math.PI * (h % (props.twentyfour ? 24 : 12) + (m + s / 60) / 60) / (props.twentyfour ? 12 : 6);
mAngle = Math.PI * (m + s / 60) / 30;
sAngle = Math.PI * (now.valueOf() / 1000) / 30; // NOTE: UNIX
sAngle = Math.PI * Math.floor(now.valueOf() / 1000) / 30; // NOTE: UNIX
}
tick();