Skip to content

Commit

Permalink
Fix bug when skipping file sizes to test in knbvm by casting strings …
Browse files Browse the repository at this point in the history
…to integers for proper comparison
  • Loading branch information
doulikecookiedough committed Jan 19, 2024
1 parent 4ad9926 commit 8899f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hashstore/hashstoreclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,10 @@ def get_object_metadata_list(self, origin_directory, num, skip_obj_size=None):
object_metadata_list = []
gb_files_to_skip = None
if skip_obj_size is not None:
gb_files_to_skip = skip_obj_size * (1024**3)
gb_files_to_skip = int(skip_obj_size) * (1024**3)

for row in rows:
size = row[6]
size = int(row[6])
if gb_files_to_skip is not None and size > gb_files_to_skip:
continue
else:
Expand Down

0 comments on commit 8899f32

Please sign in to comment.