diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-02 18:08:22 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-02 18:08:22 +0700 |
| commit | 8a7b95ee563286d69c04fa3aed7c538a6f62d7ec (patch) | |
| tree | a8b608cb59ed5ed783b1ebdd9b3f0167459c7521 /frontend | |
| parent | 760b541e9819d6006bd9086614c07c71f93ab359 (diff) | |
frontend?
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/main.js b/frontend/main.js index 737d3bc..629a3cf 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -139,7 +139,7 @@ async function updateMachines() { } const now = Date.now(); const end = Date.parse(status[2][i]); - machine_txts[i].innerHTML = Math.ceil((end - now) / 6000).toString() + " min(s) left"; + machine_txts[i].innerHTML = Math.ceil((end - now) / 60000).toString() + " min(s) left"; } else if (status[0][i] == "FINISHED") { if ((i + 1) % 2 == 0) { machine_imgs[i].src = "/assets/img/washer_clothes.png"; @@ -225,6 +225,7 @@ async function startLoadTimers() { console.log(textList); console.log(endTimestamps); + console.log(startTimestamps); while (true) { for (let i = 0; i < textList.length; i++) { |
