Lightweight server monitoring with historical data, docker stats, and alerts.
chore: remove commented-out LoadAvg1/5/15 fields
sveng937179bf8b8ac0
diff --git a/internal/entities/system/system.go b/internal/entities/system/system.goindex a2c12c6f5..c3ec5e404 100644--- a/internal/entities/system/system.go+++ b/internal/entities/system/system.go@@ -42,12 +42,9 @@ type Stats struct {Temperatures map[string]float64 `json:"t,omitempty" cbor:"20,keyasint,omitempty"`ExtraFs map[string]*FsStats `json:"efs,omitempty" cbor:"21,keyasint,omitempty"`GPUData map[string]GPUData `json:"g,omitempty" cbor:"22,keyasint,omitempty"`- // LoadAvg1 float64 `json:"l1,omitempty" cbor:"23,keyasint,omitempty"`- // LoadAvg5 float64 `json:"l5,omitempty" cbor:"24,keyasint,omitempty"`- // LoadAvg15 float64 `json:"l15,omitempty" cbor:"25,keyasint,omitempty"`- Bandwidth [2]uint64 `json:"b,omitzero" cbor:"26,keyasint,omitzero"` // [sent bytes, recv bytes]- MaxBandwidth [2]uint64 `json:"bm,omitzero" cbor:"-"` // [sent bytes, recv bytes]- // TODO: remove other load fields in future release in favor of load avg array+ // cbor keys 23-25 were LoadAvg1/5/15 (removed) - do not reuse+ Bandwidth [2]uint64 `json:"b,omitzero" cbor:"26,keyasint,omitzero"` // [sent bytes, recv bytes]+ MaxBandwidth [2]uint64 `json:"bm,omitzero" cbor:"-"` // [sent bytes, recv bytes]LoadAvg [3]float64 `json:"la,omitempty" cbor:"28,keyasint"`Battery Battery `json:"bat,omitzero" cbor:"29,keyasint,omitzero"` // [percent, charge state]NetworkInterfaces map[string][4]uint64 `json:"ni,omitempty" cbor:"31,keyasint,omitempty"` // [upload bytes, download bytes, total upload, total download]@@ -176,9 +173,7 @@ type Info struct {GpuPct float64 `json:"g,omitzero" cbor:"12,keyasint,omitempty"`DashboardTemp float64 `json:"dt,omitzero" cbor:"13,keyasint,omitempty"`Os Os `json:"os,omitzero" cbor:"14,keyasint,omitempty"` // deprecated - moved to Details struct- // LoadAvg1 float64 `json:"l1,omitempty" cbor:"15,keyasint,omitempty"` // deprecated - use `la` array instead- // LoadAvg5 float64 `json:"l5,omitempty" cbor:"16,keyasint,omitempty"` // deprecated - use `la` array instead- // LoadAvg15 float64 `json:"l15,omitempty" cbor:"17,keyasint,omitempty"` // deprecated - use `la` array instead+ // cbor keys 15-17 were LoadAvg1/5/15 (removed) - do not reuseBandwidthBytes uint64 `json:"bb" cbor:"18,keyasint"`LoadAvg [3]float64 `json:"la,omitempty" cbor:"19,keyasint"`