diff --git a/cpu/cpu_linux.go b/cpu/cpu_linux.go index 220cd64..9f90a7e 100644 --- a/cpu/cpu_linux.go +++ b/cpu/cpu_linux.go @@ -93,6 +93,9 @@ func finishCPUInfo(c *InfoStat) error { return nil } c.Mhz = value / 1000.0 // value is in kHz + if c.Mhz > 9999 { + c.Mhz = c.Mhz / 1000.0 // value in Hz + } return nil }