File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const watchEventSource = require("./watchEventSource");
12
12
13
13
const EXISTANCE_ONLY_TIME_ENTRY = Object . freeze ( { } ) ;
14
14
15
- let FS_ACCURACY = 1000 ;
15
+ let FS_ACCURACY = 2000 ;
16
16
17
17
const IS_OSX = require ( "os" ) . platform ( ) === "darwin" ;
18
18
const WATCHPACK_POLLING = process . env . WATCHPACK_POLLING ;
@@ -181,7 +181,7 @@ class DirectoryWatcher extends EventEmitter {
181
181
safeTime = now ;
182
182
accuracy = 0 ;
183
183
184
- if ( old && old . timestamp === mtime && mtime + FS_ACCURACY < now - 1000 ) {
184
+ if ( old && old . timestamp === mtime && mtime + FS_ACCURACY < now ) {
185
185
// We are sure that mtime is untouched
186
186
// This can be caused by some file attribute change
187
187
// e. g. when access time has been changed
@@ -782,4 +782,5 @@ function ensureFsAccuracy(mtime) {
782
782
if ( FS_ACCURACY > 1 && mtime % 1 !== 0 ) FS_ACCURACY = 1 ;
783
783
else if ( FS_ACCURACY > 10 && mtime % 10 !== 0 ) FS_ACCURACY = 10 ;
784
784
else if ( FS_ACCURACY > 100 && mtime % 100 !== 0 ) FS_ACCURACY = 100 ;
785
+ else if ( FS_ACCURACY > 1000 && mtime % 1000 !== 0 ) FS_ACCURACY = 1000 ;
785
786
}
You can’t perform that action at this time.
0 commit comments