Skip to content

Commit a1112a6

Browse files
change milliseconds to date object
1 parent 6daa707 commit a1112a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/FileLock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function waitForLock(path: string, options: InternalServerOptions):
3232
function setupMTimeEditor(lockPath: string): () => Promise<void> {
3333
const interval = setInterval(async () => {
3434
try {
35-
const time = performance.now();
35+
const time = new Date();
3636
await fsPromises.utimes(lockPath, time, time)
3737
} catch {}
3838
}, mtimeUpdateIntervalTime)

0 commit comments

Comments
 (0)