Skip to content

Commit

Permalink
s/process.watchFile/fs.watchFile/
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 11, 2010
1 parent 1c0fb23 commit 347d74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync.js
Expand Up @@ -59,7 +59,7 @@ function sync () {

// if a file changes, then update that bit of the ddoc, and push it up.
if (dev && firstTime) {
process.watchFile(file, {persistent: true, interval: 100}, function (o, n) {
fs.watchFile(file, {persistent: true, interval: 100}, function (o, n) {
if (o.mtime.getTime() === n.mtime.getTime()) return;
sys.error("Changed: "+file);
fs.readFile(file, function (er, data) {
Expand Down

0 comments on commit 347d74c

Please sign in to comment.