Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
cpu_freq: Simplify with E-notation
[slstatus.git]
/
components
/
cpu.c
diff --git
a/components/cpu.c
b/components/cpu.c
index
2c5e4dc
..
14c8658
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 *