all repos — slstatus @ c2492c3f99d9d434a6f935dea8e97fa27cdd2adc

my build of slstatus (tools.suckless.org/slstatus/)

cpu_freq: Simplify with E-notation

Thanks to the FRIGN
Aaron Marcher me@drkhsh.at
Sat, 07 Jul 2018 10:56:10 +0200
commit

c2492c3f99d9d434a6f935dea8e97fa27cdd2adc

parent

e20b50112e01f92f7c302107b59b17d8cc28387a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M components/cpu.ccomponents/cpu.c

@@ -68,7 +68,7 @@ warn("sysctl 'HW_CPUSPEED':");

return NULL; } - return fmt_human(freq * 1000 * 1000, 1000); + return fmt_human(freq * 1E6, 1000); } const char *