fhandler_proc.cc(format_proc_cpuinfo): round cpu MHz
Round cpu MHz to correct Windows and match Linux cpuinfo.
This commit is contained in:
parent
9f73e24847
commit
996295780b
|
@ -695,6 +695,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
|||
|
||||
RtlQueryRegistryValues (RTL_REGISTRY_ABSOLUTE, cpu_key, tab,
|
||||
NULL, NULL);
|
||||
cpu_mhz = ((cpu_mhz - 1) / 10 + 1) * 10; /* round up to multiple of 10 */
|
||||
bufptr += __small_sprintf (bufptr, "processor\t: %d\n", cpu_number);
|
||||
uint32_t maxf, vendor_id[4], unused;
|
||||
|
||||
|
|
Loading…
Reference in New Issue