💄 dashboard v0.13.10 优化操作系统图标

This commit is contained in:
naiba
2022-05-05 20:55:23 +08:00
parent d7bf3cbbc5
commit e272d6a0f7
11 changed files with 46 additions and 26 deletions

View File

@@ -71,7 +71,7 @@ func GetHost(agentConfig *model.AgentConfig) *model.Host {
}
return &model.Host{
Platform: hi.OS,
Platform: hi.Platform,
PlatformVersion: hi.PlatformVersion,
CPU: cpus,
MemTotal: mv.Total,

View File

@@ -1,5 +1,15 @@
package main
func main() {
import (
"log"
"github.com/shirou/gopsutil/v3/host"
)
func main() {
info, err := host.Info()
if err != nil {
panic(err)
}
log.Printf("%#v", info)
}