Skip to content

Commit 75b5556

Browse files
erikkempermanphated
authored andcommitted
Docs: Rephrase note about 32-bit timestamp precision issue (#260)
1 parent 25decff commit 75b5556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ If they differ and the running process owns the file, the corresponding filesyst
135135
If they don't differ or the process doesn't own the file, the attempt is skipped silently.
136136
__This functionality is disabled on Windows operating systems or any other OS that doesn't support `process.getuid` or `process.geteuid` in node. This is due to Windows having very unexpected results through usage of `fs.fchmod` and `fs.futimes`.__
137137

138-
__Note: The `fs.futimes()` method internally casts `stat.mtime` and `stat.atime` to floats, which causes precision lost in 32bit Node.js.__
138+
__Note: The `fs.futimes()` method internally converts `stat.mtime` and `stat.atime` timestamps to seconds; this division by `1000` may cause some loss of precision in 32-bit Node.js.__
139139

140140
If the file has a `symlink` attribute specifying a target path, then a symlink will be created.
141141

0 commit comments

Comments
 (0)