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
7a0496f78f
commit
70e834ea7c
|
@ -695,6 +695,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
|
||||||
|
|
||||||
RtlQueryRegistryValues (RTL_REGISTRY_ABSOLUTE, cpu_key, tab,
|
RtlQueryRegistryValues (RTL_REGISTRY_ABSOLUTE, cpu_key, tab,
|
||||||
NULL, NULL);
|
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);
|
bufptr += __small_sprintf (bufptr, "processor\t: %d\n", cpu_number);
|
||||||
uint32_t maxf, vendor_id[4], unused;
|
uint32_t maxf, vendor_id[4], unused;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue