Skip to content

Commit

Permalink
Merge pull request #13 from rodnaph/master
Browse files Browse the repository at this point in the history
Fix for date match failing
  • Loading branch information
mikeal committed Oct 11, 2011
2 parents e1f5228 + 3ae7544 commit 96ff3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exports.watchTree = function ( root, options, callback ) {
var fileWatcher = function (f) {
fs.watchFile(f, options, function (c, p) {
// Check if anything actually changed in stat
if (files[f] && !files[f].isDirectory() && c.nlink !== 0 && files[f].mtime == c.mtime) return;
if (files[f] && !files[f].isDirectory() && c.nlink !== 0 && files[f].mtime.getTime() == c.mtime.getTime()) return;
files[f] = c;
if (!files[f].isDirectory()) callback(f, c, p);
else {
Expand Down

0 comments on commit 96ff3a0

Please sign in to comment.