mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
Add a comment documenting why the rounding
This commit is contained in:
parent
fad28b05a1
commit
99bddb4551
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue