Introduction
Introduction Statistics Contact Development Disclaimer Help
cpu_freq: Simplify with E-notation - slstatus - status monitor
git clone git://git.suckless.org/slstatus
Log
Files
Refs
README
LICENSE
---
commit c2492c3f99d9d434a6f935dea8e97fa27cdd2adc
parent e20b50112e01f92f7c302107b59b17d8cc28387a
Author: Aaron Marcher <[email protected]>
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(-)
---
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 *
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.