Skip to content

Commit

Permalink
Change CPU.Mhz type to StringOrInt
Browse files Browse the repository at this point in the history
  • Loading branch information
alperencelik committed Aug 23, 2024
1 parent 630c81a commit c4b679f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/mocks/pve7x/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ func nodes() {
"uptime": 2501631,
"kversion": "Linux 5.15.108-1-pve #1 SMP PVE 5.15.108-2 (2023-07-20T10:06Z)",
"cpuinfo": {
"mhz": 3400,
"mhz": "3400.000",
"model": "Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz",
"sockets": 1,
"flags": "fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp",
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ type RootFS struct {

type CPUInfo struct {
UserHz int `json:"user_hz"`
MHZ int
MHZ StringOrInt
Mode string
Cores int
Sockets int
Expand Down

0 comments on commit c4b679f

Please sign in to comment.