Skip to content

Commit

Permalink
fix: used wrong var
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 authored and tazlin committed Dec 11, 2024
1 parent a7e8d96 commit 1cdd90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hordelib/model_manager/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def amount_of_adhoc_loras_to_delete(self):
if not self.is_adhoc_cache_full():
return 0
# If we have exceeded our cache, we delete 1 lora + 1 extra lora per 4G over our cache.
return 1 + ((self.calculate_adhoc_loras_cache() - self._max_top_disk) / 4096)
return 1 + int((self.calculate_adhoc_loras_cache() - self.max_adhoc_disk) / 4096)

def calculate_download_queue(self):
total_queue = 0
Expand Down

0 comments on commit 1cdd90e

Please sign in to comment.