This commit is contained in:
Ignacio Serantes
2026-03-28 07:54:59 +01:00
parent d4f3732aa4
commit ff7c1aa373
3 changed files with 143 additions and 43 deletions

View File

@@ -29,7 +29,7 @@ if FORCE_X11:
# --- CONFIGURATION ---
PROG_NAME = "Bagheera Image Viewer"
PROG_ID = "bagheeraview"
PROG_VERSION = "0.9.15-dev"
PROG_VERSION = "0.9.15"
PROG_AUTHOR = "Ignacio Serantes"
# --- CACHE SETTINGS ---
@@ -47,6 +47,10 @@ except (ImportError, Exception):
# Fallback to a safe 256MB if psutil is missing or fails
CACHE_MAX_RAM_BYTES = 256 * 1024 * 1024
# Minimum percentage of free system RAM required.
# Aggressive cache pruning will trigger if available memory falls below this.
MIN_FREE_RAM_PERCENT = 5.0
# Maximum size of the persistent disk cache file.
# 10 GB limit for persistent cache file
DISK_CACHE_MAX_BYTES = 10 * 1024 * 1024 * 1024