From 660cde12c743be673f1c4505800e65eecbff8b01 Mon Sep 17 00:00:00 2001 From: Xorg Date: Sat, 4 Mar 2017 19:04:17 +0100 Subject: [PATCH] cpuid_tool: fix multipliers format since 6ae7e344bec0e37dacd9589d4d87fd7cb4dd68ef --- cpuid_tool/cpuid_tool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpuid_tool/cpuid_tool.c b/cpuid_tool/cpuid_tool.c index bd64ce1..6717f1a 100644 --- a/cpuid_tool/cpuid_tool.c +++ b/cpuid_tool/cpuid_tool.c @@ -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) fprintf(fout, " MSR.aperf : %d MHz\n", 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) - 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) - 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) fprintf(fout, " temperature: %d degrees Celsius\n", value); if ((value = cpu_msrinfo(handle, INFO_THROTTLING)) != CPU_INVALID_VALUE)