add system stats temps

This commit is contained in:
David Newhall II 2021-03-14 22:17:27 -07:00
parent a63ee00563
commit f7c1267b35
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ type SystemStats struct {
CPU FlexInt `json:"cpu"`
Mem FlexInt `json:"mem"`
Uptime FlexInt `json:"uptime"`
// This exists on at least USG4, may others, maybe not.
// {"Board (CPU)":"51 C","Board (PHY)":"51 C","CPU":"72 C","PHY":"77 C"}
Temps map[string]string `json:"temps,omitempty"`
}
// SysStats is load info for a UDM, USG, USW.