diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-07-07 10:56:10 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-07-07 10:56:10 +0200 |
commit | c2492c3f99d9d434a6f935dea8e97fa27cdd2adc (patch) | |
tree | 9b9bb23f4c00e1a1e4bfa3aea5ee643cd1d0160a /components/cpu.c | |
parent | e20b50112e01f92f7c302107b59b17d8cc28387a (diff) |
cpu_freq: Simplify with E-notation
Thanks to the FRIGN
Diffstat (limited to 'components/cpu.c')
-rw-r--r-- | components/cpu.c | 2 |
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 * |