Skip to content

Commit

Permalink
Fix bug discovered by @james58899
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jun 7, 2024
1 parent 1d48c0c commit aac7bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirrormanager2/crawler/rsync_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _check_file(self, current_file_info, db_file_info):
return True

try:
return float(current_file_info["size"]) != float(db_file_info["size"])
return float(current_file_info["size"]) == float(db_file_info["size"])
except ValueError: # one of the conversion to float() failed
logger.debug("Invalid size value for file %s", current_file_info)
return False
Expand Down

0 comments on commit aac7bd2

Please sign in to comment.