Time
This commit is contained in:
parent
6931d0d69b
commit
05be045762
|
@ -34,11 +34,11 @@ export function Routine(
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const delta = (new Date()).getTime() - lastPhaseSelection.getTime()
|
const delta = (new Date()).getTime() - lastPhaseSelection.getTime()
|
||||||
const nowPhase = toPhase()
|
const nowPhase = toPhase()
|
||||||
if (nowPhase != currentPhase.value && delta >= 5000) {
|
if (nowPhase != currentPhase.value && delta >= 1000 * 60 * 10) {
|
||||||
currentPhase.value = nowPhase
|
currentPhase.value = nowPhase
|
||||||
lastPhaseSelection = new Date()
|
lastPhaseSelection = new Date()
|
||||||
}
|
}
|
||||||
}, 2_000)
|
}, 5_000)
|
||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue