v0.0.7 - 更新支持查询GPU信息

This commit is contained in:
spiritlhl
2024-07-28 13:03:04 +00:00
parent 3a3f46d5cc
commit 58e26753bb
19 changed files with 894 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
package model
const BasicsVersion = "v0.0.6"
const BasicsVersion = "v0.0.7"
var EnableLoger bool
@@ -119,6 +119,7 @@ type DiskInfo struct {
type SystemInfo struct {
CpuInfo
GPUInfo
MemoryInfo
DiskInfo
Platform string // 系统名字 Distro1
@@ -135,6 +136,11 @@ type SystemInfo struct {
TcpAccelerationMethod string // TCP拥塞控制
}
type GPUInfo struct {
GpuModel string
GpuStats string
}
type Win32_Processor struct {
L2CacheSize uint32
L3CacheSize uint32
@@ -153,7 +159,7 @@ type Win32CacheMemory struct {
}
type Win32_VFE struct {
VirtualizationFirmwareEnabled bool
VirtualizationFirmwareEnabled bool
}
type Win32_ComputerSystem struct {