From 99bddb4551cf3a53b817eb6cd853ac75f4c7202f Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 3 Jul 2025 23:35:11 +0200 Subject: [PATCH] Add a comment documenting why the rounding --- src/pages/StatusPage.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index 701ef4b90..0c9e97c2d 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -806,6 +806,7 @@ export default { clearInterval(this.updateCountdown); this.updateCountdown = setInterval(() => { + // rounding here as otherwise we sometimes skip numbers in cases of time drift const countdown = dayjs.duration( Math.round( this.lastUpdateTime