Skip to content

Commit

Permalink
Timestamps on linux are float ... fix indexer.
Browse files Browse the repository at this point in the history
  • Loading branch information
karamanolev committed Sep 22, 2014
1 parent 2281a75 commit 9f58bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def get_metadata_batch(cls, what_torrent, trans_torrent, force_update):
file_mtime=0
)
cache.path = abs_path
if file_mtime == cache.file_mtime:
if abs(file_mtime - cache.file_mtime) <= 1:
result.append(cache)
continue
cache.fill(abs_path, file_mtime)
Expand Down

0 comments on commit 9f58bf2

Please sign in to comment.