Skip to content

Commit 7f3972e

Browse files
authored
chore: getTime() instead of getMilliseconds()
1 parent 87e0e87 commit 7f3972e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/models/VallisCycle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface CurrnetCycle {
3535
* @returns current cycle state
3636
*/
3737
function getCurrentCycle(): CurrnetCycle {
38-
const sinceLast = (Date.now() - lStart.getMilliseconds()) % loopTime;
38+
const sinceLast = (Date.now() - lStart.getTime()) % loopTime;
3939
const toNextFull = loopTime - sinceLast;
4040
let state = 'cold';
4141
if (toNextFull > coldTime) {

0 commit comments

Comments
 (0)