some fixes again

This commit is contained in:
Ayzen
2026-06-05 17:50:59 +03:00
parent bbea744459
commit 3c30a12d4a
24 changed files with 209 additions and 157 deletions
+11 -2
View File
@@ -140,8 +140,17 @@ class AppWindow(
try:
value = int(raw)
except ValueError:
return 50
return value if value >= 1 else 50
value = 0
if value >= 1:
return value
# A non-empty but invalid value is an operator mistake — say so instead of
# silently swallowing it (stderr is captured by journald in headless mode).
print(
f"[radar] Ignoring invalid RADAR_SYSTEM_METRICS_REPORT_EVERY={raw!r}; using default 50.",
file=sys.stderr,
flush=True,
)
return 50
def _init_config_profile_state(self) -> None:
"""Resolve startup profile path, load active profile, and queue fallback notices."""