mirror of https://github.com/shirou/gopsutil
Standardize `Mhz` to mean maximum CPU frequency on Linux platform
* resolve #249 * in `cpu_windows.go`, `Mhz` is the value of `MaxClockSpeed` * on Linux platform, the `Mhz` value is extracted from `/proc/cpuinfo` which reflects the current clock speed; treat this as the fallback value instead * read from `cpufreq/cpuinfo_max_freq` under sysfs to get the maximum clock speed for `Mhz`, just like for Windows platform * also fix the path to `cpu.CoreID` value; the filename is `core_id`pull/253/head
parent
79184fee44
commit
10a1ae2123
Loading…
Reference in New Issue