From 840abab82d1d89ac7f8de4bc65f55466c3501a37 Mon Sep 17 00:00:00 2001 From: lexis Date: Sat, 6 Jun 2026 08:43:51 +0200 Subject: [PATCH] accuracy fix: container_stats.rs tracks mem metrics only, not swap --- CLAUDE.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 80be910e..9e7ccf31 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -124,9 +124,10 @@ hive-c0re/ host daemon + sibling operator CLI (lib + 2 bins) model mix. Backs GET /api/stats-hive for the dashboard's ST4TS tab; missing / unreadable dbs skipped (one bad db never fails the endpoint). - src/container_stats.rs per-container resource metrics (cpu %, mem %, swap) - polled live; aggregated for dashboard display. - Skips unhealthy / stopped containers gracefully. + src/container_stats.rs per-container resource metrics (cpu %, current/peak/max + memory in bytes) polled live from cgroup-v2; + aggregated for dashboard display. Skips unhealthy / + stopped containers gracefully. src/crash_watch.rs poll every 10s; fire HelperEvent::ContainerCrash when a previously-running container disappears without an operator-initiated transient (or a