Skip to content

Commit

Permalink
change milliseconds to date object
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Nov 15, 2024
1 parent 6daa707 commit a1112a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/FileLock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function waitForLock(path: string, options: InternalServerOptions):
function setupMTimeEditor(lockPath: string): () => Promise<void> {
const interval = setInterval(async () => {
try {
const time = performance.now();
const time = new Date();
await fsPromises.utimes(lockPath, time, time)
} catch {}
}, mtimeUpdateIntervalTime)
Expand Down

0 comments on commit a1112a6

Please sign in to comment.