Commit 4523738
committed
fix(process-lock): drop dead Math.floor around mtime.getTime()
`Date.prototype.getTime()` already returns an integer millisecond
count, so `Math.floor(stats.mtime.getTime())` was a no-op. Simplify
the stale-check expression and update the comment to reflect that
APFS's second-level filesystem precision just zeros the low bits —
no extra flooring is needed.1 parent 38e3b96 commit 4523738
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
0 commit comments