summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-07-07 10:56:10 +0200
committerAaron Marcher <me@drkhsh.at>2018-07-07 10:56:10 +0200
commitc2492c3f99d9d434a6f935dea8e97fa27cdd2adc (patch)
tree9b9bb23f4c00e1a1e4bfa3aea5ee643cd1d0160a
parente20b50112e01f92f7c302107b59b17d8cc28387a (diff)
cpu_freq: Simplify with E-notation
Thanks to the FRIGN
-rw-r--r--components/cpu.c2
1 files changed, 1 insertions, 1 deletions
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 *