update rreb and refactor toggle

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 6c0b1b96bc
commit 91e91fe5e8
4 changed files with 92 additions and 105 deletions

View File

@@ -25,7 +25,7 @@ export function formatTime(ms) {
ms = ms % HOUR;
const minute = Math.floor(ms / MINUTE);
ms = ms % MINUTE;
const second = Math.floor(ms / SECOND);
const second = Math.round(ms / SECOND);
if (hour) {
return `${padZero(hour)}:${padZero(minute)}:${padZero(minute)}`;
}