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"