cpu_freq: Simplify with E-notation - slstatus - status monitor
(HTM) git clone git://git.suckless.org/slstatus
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c2492c3f99d9d434a6f935dea8e97fa27cdd2adc
(DIR) parent e20b50112e01f92f7c302107b59b17d8cc28387a
(HTM) Author: Aaron Marcher <me@drkhsh.at>
Date: Sat, 7 Jul 2018 10:56:10 +0200
cpu_freq: Simplify with E-notation
Thanks to the FRIGN
Diffstat:
M components/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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 *