projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de2173
)
Fix default value for persistent in watchFile()
author
Ryan Dahl
<ry@tinyclouds.org>
Tue, 17 Nov 2009 22:07:31 +0000
(23:07 +0100)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 17 Nov 2009 22:07:31 +0000
(23:07 +0100)
src/node.js
patch
|
blob
|
history
diff --git
a/src/node.js
b/src/node.js
index
27a6367
..
6882102
100644
(file)
--- a/
src/node.js
+++ b/
src/node.js
@@
-350,8
+350,7
@@
process.watchFile = function (filename) {
}
if (options.persistent === undefined) options.persistent = true;
- if (options.interval === undefined) options.persistent = 0;
-
+ if (options.interval === undefined) options.interval = 0;
if (filename in statWatchers) {
stat = statWatchers[filename];