projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e20b501
)
cpu_freq: Simplify with E-notation
author
Aaron Marcher
<me@drkhsh.at>
Sat, 7 Jul 2018 08:56:10 +0000
(10:56 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Sat, 7 Jul 2018 08:56:10 +0000
(10:56 +0200)
Thanks to the FRIGN
components/cpu.c
patch
|
blob
|
history
diff --git
a/components/cpu.c
b/components/cpu.c
index 2c5e4dc94b5317258592b224ce45846e33a99891..14c865840a9a3fcee664e081f68a1a5219a4f4a3 100644
(file)
--- a/
components/cpu.c
+++ b/
components/cpu.c
@@
-68,7
+68,7
@@
return NULL;
}
- return fmt_human(freq * 1
000 * 1000
, 1000);
+ return fmt_human(freq * 1
E6
, 1000);
}
const char *