diff --git a/audit/internal/webui/page_topo_diagram.go b/audit/internal/webui/page_topo_diagram.go index 3cd956b..8d7b6fb 100644 --- a/audit/internal/webui/page_topo_diagram.go +++ b/audit/internal/webui/page_topo_diagram.go @@ -643,11 +643,14 @@ func renderTopoPSURow(psus []schema.HardwarePowerSupply, observedMaxW map[string if p.WattageW != nil && *p.WattageW > 0 { rating = *p.WattageW } - // Load scale: true rating if known, else the observed peak draw. + // Load scale: true rating if known, else the observed peak draw — but + // only once that peak sits meaningfully above the current draw. Until + // a real full-load run has bumped it, the "peak" is just idle draw and + // a load % off it would be nonsense, so fall back to plain watts. scaleMax := float64(rating) scaleEstimate := false if scaleMax <= 0 { - if m := observedMaxW[strconv.Itoa(i)]; m > 0 { + if m := observedMaxW[strconv.Itoa(i)]; m > 0 && (!haveDraw || m >= draw*1.25) { scaleMax = m scaleEstimate = true }