From aa8287c0370c952aeb0cb3a0a0d7feea7f0399bb Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Thu, 29 Feb 2024 16:57:08 -0500 Subject: [PATCH] Store remaining space should be an int, not a float. --- librarian_server/stores/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librarian_server/stores/local.py b/librarian_server/stores/local.py index 951af3b..6785e1e 100644 --- a/librarian_server/stores/local.py +++ b/librarian_server/stores/local.py @@ -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():