diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2024-01-13 19:52:01 +0100 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2024-01-13 19:52:01 +0100 |
| commit | 8b8363eaa2633c8a7392521416f45549ff10c164 (patch) | |
| tree | c503f910abdc6b280895fa28e008bec8edd637e1 /components/cpu.c | |
| parent | f68f49273e70b3767b30c549dda04ddd4d25fc91 (diff) | |
My initial changes
Diffstat (limited to 'components/cpu.c')
| -rw-r--r-- | components/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/cpu.c b/components/cpu.c index d0d03c7..a0b7314 100644 --- a/components/cpu.c +++ b/components/cpu.c @@ -18,7 +18,8 @@ if (pscanf(CPU_FREQ, "%ju", &freq) != 1) return NULL; - return fmt_human(freq * 1000, 1000); + //return fmt_human(freq * 1000, 1000); + return bprintf("%.1f", freq/1e6); } const char * |
