Skip to content

Commit

Permalink
Store remaining space should be an int, not a float.
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Feb 29, 2024
1 parent 9ed2a55 commit aa8287c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librarian_server/stores/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def free_space(self) -> int:
store_free = store.free - (store.total * reserved_fraction)
staging_free = staging.free - (staging.total * reserved_fraction)

return max(min(store_free, staging_free), 0)
return int(max(min(store_free, staging_free), 0))

def _resolved_path_staging(self, path: Path) -> Path:
if not path.is_absolute():
Expand Down

0 comments on commit aa8287c

Please sign in to comment.