mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-21 21:26:16 +01:00
When reusing slices/structs with json.Unmarshal, fields marked with omitzero that are missing in the JSON are not reset to zero - they retain values from previous iterations. This caused containers without bandwidth data to inherit values from other containers that happened to occupy the same backing array position in previous records, resulting in inflated 10m averages. - Set containerStats to nil instead of [:0] to force fresh allocation - Reset tempStats each iteration in AverageSystemStats