Browse Source

Merge pull request #2330 from alexlarsson/dm-fix-change-detection

Fix typo that made change detection break
Victor Vieux 11 years ago
parent
commit
1fe08e0046
1 changed files with 1 additions and 1 deletions
  1. 1 1
      changes.go

+ 1 - 1
changes.go

@@ -119,7 +119,7 @@ func (info *FileInfo) addChanges(oldInfo *FileInfo, changes *[]Change) {
 			// breaks down is if some code intentionally hides a change by setting
 			// breaks down is if some code intentionally hides a change by setting
 			// back mtime
 			// back mtime
 			oldMtime := syscall.NsecToTimeval(oldStat.Mtim.Nano())
 			oldMtime := syscall.NsecToTimeval(oldStat.Mtim.Nano())
-			newMtime := syscall.NsecToTimeval(oldStat.Mtim.Nano())
+			newMtime := syscall.NsecToTimeval(newStat.Mtim.Nano())
 			if oldStat.Mode != newStat.Mode ||
 			if oldStat.Mode != newStat.Mode ||
 				oldStat.Uid != newStat.Uid ||
 				oldStat.Uid != newStat.Uid ||
 				oldStat.Gid != newStat.Gid ||
 				oldStat.Gid != newStat.Gid ||