feat: multi-percentage monitors (per-core CPU), max 8

This commit is contained in:
Pi Agent
2026-09-02 16:13:36 +00:00
parent 4f98490224
commit 887d45a771
9 changed files with 112 additions and 41 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func (s *server) ListContent(ctx context.Context, _ *connect.Request[homelabv1.L
m := &homelabv1.Monitor{Name: it.Name}
if d, ok := s.monVals.Load(it.Name); ok {
md := d.(*monData)
m.Percentage, m.Stats = md.percentage, md.stats
m.Percentage, m.Percentages, m.Stats = md.percentage, md.percentages, md.stats
}
resp.Monitors = append(resp.Monitors, m)
}