Add extra disks to system table (#1365)

This commit is contained in:
Sven van Ginkel
2025-11-12 20:17:07 +01:00
committed by GitHub
parent a7ef1235f4
commit de1ad26fc2
4 changed files with 107 additions and 1 deletions

View File

@@ -99,6 +99,11 @@ type FsStats struct {
MaxDiskWriteBytes uint64 `json:"wbm,omitempty" cbor:"-"`
}
// ExtraFsInfo contains summary info for extra filesystems in the system info
type ExtraFsInfo struct {
DiskPct float64 `json:"dp" cbor:"0,keyasint"`
}
type NetIoStats struct {
BytesRecv uint64
BytesSent uint64
@@ -146,6 +151,7 @@ type Info struct {
// TODO: remove load fields in future release in favor of load avg array
LoadAvg [3]float64 `json:"la,omitempty" cbor:"19,keyasint"`
ConnectionType ConnectionType `json:"ct,omitempty" cbor:"20,keyasint,omitempty,omitzero"`
ExtraFsPct map[string]ExtraFsInfo `json:"efsp,omitempty" cbor:"21,keyasint,omitempty"`
}
// Final data structure to return to the hub