From 41127e2cbf93d4a1cb0fe6a366d24d978aa65ce8 Mon Sep 17 00:00:00 2001 From: Thibaud Guillaume-Gentil Date: Sat, 3 Sep 2011 14:52:33 +0200 Subject: [PATCH] Only use crime on == timestamp comparison --- lib/guard/listener.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard/listener.rb b/lib/guard/listener.rb index 0b38a35..31efc4c 100644 --- a/lib/guard/listener.rb +++ b/lib/guard/listener.rb @@ -156,7 +156,7 @@ module Guard res = file_content_modified?(path, sha1_checksum(path)) p res.to_s res - elsif File.ctime(path).to_i > last_event.to_i + elsif File.mtime(path).to_i > last_event.to_i p "File.ctime > last_event" set_sha1_checksums_hash(path, sha1_checksum(path)) p "true"