mirror of
https://github.com/oneclickvirt/basics.git
synced 2025-11-01 20:42:37 +08:00
v0.0.7 - 更新支持查询GPU信息
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user