mirror of https://github.com/shirou/gopsutil
Addressing frequency unit discrepancies
* for Darwin, it is a minor tweak for readability: the value returned is in Hz, so using a variable named 'hz' makes more sense than 'mhz' * for Linux, the unit is in kHz so we need to divide the value from `cpuinfo_max_freq` by 10^3 to get MHz (see cpu-freq/user-guide.txt of the kernel documentation)pull/248/head
parent
3562fb8aa2
commit
123a6c9b0d
Loading…
Reference in New Issue