From c2492c3f99d9d434a6f935dea8e97fa27cdd2adc Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 7 Jul 2018 10:56:10 +0200 Subject: cpu_freq: Simplify with E-notation Thanks to the FRIGN --- components/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cpu.c b/components/cpu.c index 2c5e4dc..14c8658 100644 --- a/components/cpu.c +++ b/components/cpu.c @@ -68,7 +68,7 @@ return NULL; } - return fmt_human(freq * 1000 * 1000, 1000); + return fmt_human(freq * 1E6, 1000); } const char * -- cgit v1.2.3