Skip to content

Commit

Permalink
fs: set fs.watchFile poll interval to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Nov 20, 2022
1 parent 5af2021 commit ecfef3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2359,10 +2359,7 @@ function watchFile(filename, options, listener) {
}

options = {
// Poll interval in milliseconds. 5007 is what libev used to use. It's
// a little on the slow side but let's stick with it for now to keep
// behavioral changes to a minimum.
interval: 5007,
interval: 1000,
persistent: true,
...options
};
Expand Down

0 comments on commit ecfef3b

Please sign in to comment.