Xinqi Bao's Git
projects
/
slstatus.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Merge fmt_human_2 and fmt_human_10 to one function
[slstatus.git]
/
components
/
cpu.c
diff --git
a/components/cpu.c
b/components/cpu.c
index
3fadb36
..
ecd45a6
100644
(file)
--- a/
components/cpu.c
+++ b/
components/cpu.c
@@
-20,7
+20,7
@@
return NULL;
}
- return fmt_human
_10(freq *
1000);
+ return fmt_human
(freq * 1000,
1000);
}
const char *
@@
-67,7
+67,7
@@
return NULL;
}
- return fmt_human
_10((size_t)freq * 1000 *
1000);
+ return fmt_human
((size_t)freq * 1000 * 1000,
1000);
}
const char *