mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
cpuid_tool: fix multipliers format since 6ae7e344be
This commit is contained in:
parent
e5193b0163
commit
660cde12c7
1 changed files with 3 additions and 3 deletions
|
@ -447,11 +447,11 @@ static void print_info(output_data_switch query, struct cpu_raw_data_t* raw,
|
||||||
if ((value = cpu_msrinfo(handle, INFO_APERF)) != CPU_INVALID_VALUE)
|
if ((value = cpu_msrinfo(handle, INFO_APERF)) != CPU_INVALID_VALUE)
|
||||||
fprintf(fout, " MSR.aperf : %d MHz\n", value);
|
fprintf(fout, " MSR.aperf : %d MHz\n", value);
|
||||||
if ((value = cpu_msrinfo(handle, INFO_MIN_MULTIPLIER)) != CPU_INVALID_VALUE)
|
if ((value = cpu_msrinfo(handle, INFO_MIN_MULTIPLIER)) != CPU_INVALID_VALUE)
|
||||||
fprintf(fout, " min. multi.: %d\n", value / 100.0);
|
fprintf(fout, " min. multi.: %.2lf\n", value / 100.0);
|
||||||
if ((value = cpu_msrinfo(handle, INFO_CUR_MULTIPLIER)) != CPU_INVALID_VALUE)
|
if ((value = cpu_msrinfo(handle, INFO_CUR_MULTIPLIER)) != CPU_INVALID_VALUE)
|
||||||
fprintf(fout, " cur. multi.: %d\n", value / 100.0);
|
fprintf(fout, " cur. multi.: %.2lf\n", value / 100.0);
|
||||||
if ((value = cpu_msrinfo(handle, INFO_MAX_MULTIPLIER)) != CPU_INVALID_VALUE)
|
if ((value = cpu_msrinfo(handle, INFO_MAX_MULTIPLIER)) != CPU_INVALID_VALUE)
|
||||||
fprintf(fout, " max. multi.: %d\n", value / 100.0);
|
fprintf(fout, " max. multi.: %.2lf\n", value / 100.0);
|
||||||
if ((value = cpu_msrinfo(handle, INFO_TEMPERATURE)) != CPU_INVALID_VALUE)
|
if ((value = cpu_msrinfo(handle, INFO_TEMPERATURE)) != CPU_INVALID_VALUE)
|
||||||
fprintf(fout, " temperature: %d degrees Celsius\n", value);
|
fprintf(fout, " temperature: %d degrees Celsius\n", value);
|
||||||
if ((value = cpu_msrinfo(handle, INFO_THROTTLING)) != CPU_INVALID_VALUE)
|
if ((value = cpu_msrinfo(handle, INFO_THROTTLING)) != CPU_INVALID_VALUE)
|
||||||
|
|
Loading…
Reference in a new issue