Skip to content

Commit 588df55

Browse files
committed
Update the values reported in the ppc64_cpu --frequency output to
be displayed to three digits of precision instead of two. This update to help with test teams that are making this update to their code base already so as to get this precision in the reporting. Signed-off-by: Nathan Fontenot <[email protected]>
1 parent 3ca3925 commit 588df55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ppc64_cpu.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,11 @@ int do_cpu_frequency(void)
814814
count++;
815815
}
816816

817-
printf("min:\t%.2f GHz (cpu %ld)\n", 1.0 * min / 1000000000ULL,
817+
printf("min:\t%.3f GHz (cpu %ld)\n", 1.0 * min / 1000000000ULL,
818818
min_cpu);
819-
printf("max:\t%.2f GHz (cpu %ld)\n", 1.0 * max / 1000000000ULL,
819+
printf("max:\t%.3f GHz (cpu %ld)\n", 1.0 * max / 1000000000ULL,
820820
max_cpu);
821-
printf("avg:\t%.2f GHz\n\n", 1.0 * (sum / count) / 1000000000ULL);
821+
printf("avg:\t%.3f GHz\n\n", 1.0 * (sum / count) / 1000000000ULL);
822822
return 0;
823823
}
824824

0 commit comments

Comments
 (0)