Add a comment documenting why the rounding

This commit is contained in:
Frank Elsinga 2025-07-03 23:35:11 +02:00 committed by GitHub
parent fad28b05a1
commit 99bddb4551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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