Only use crime on == timestamp comparison

This commit is contained in:
Thibaud Guillaume-Gentil 2011-09-03 14:52:33 +02:00
parent 5978e875df
commit 41127e2cbf

View File

@ -156,7 +156,7 @@ module Guard
res = file_content_modified?(path, sha1_checksum(path)) res = file_content_modified?(path, sha1_checksum(path))
p res.to_s p res.to_s
res 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" p "File.ctime > last_event"
set_sha1_checksums_hash(path, sha1_checksum(path)) set_sha1_checksums_hash(path, sha1_checksum(path))
p "true" p "true"