Add extra disks to system table

This commit is contained in:
Sven van Ginkel
2025-11-02 20:59:34 +01:00
parent f60b3bbbfb
commit c98472ca0b
4 changed files with 107 additions and 1 deletions

View File

@@ -98,6 +98,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
@@ -145,6 +150,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