system info refactoring

This commit is contained in:
Henry Dollman
2024-09-18 12:47:06 -04:00
parent e287124632
commit 314cee081a
3 changed files with 72 additions and 63 deletions

View File

@@ -45,12 +45,11 @@ type NetIoStats struct {
}
type Info struct {
Hostname string `json:"h"`
KernelVersion string `json:"k"`
Cores int `json:"c"`
Threads int `json:"t"`
CpuModel string `json:"m"`
Hostname string `json:"h"`
KernelVersion string `json:"k,omitempty"`
Cores int `json:"c"`
Threads int `json:"t"`
CpuModel string `json:"m"`
// Os string `json:"o"`
Uptime uint64 `json:"u"`
Cpu float64 `json:"cpu"`