diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-05-21 14:44:21 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-21 14:44:21 +0200 |
commit | 10dbc9543edd5b5a7929dd8fa87ed33dd545375c (patch) | |
tree | 6f95a31f3a4c3d95b317a3280870dffb5ba5d4e1 /components/cpu.c | |
parent | fc0dde5a60a066b8506834f508aebf0ea5055990 (diff) |
Merge fmt_human_2 and fmt_human_10 to one function
Now only one function, fmt_human, takes an additional argument "base".
Diffstat (limited to 'components/cpu.c')
-rw-r--r-- | components/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/cpu.c b/components/cpu.c index 3fadb36..ecd45a6 100644 --- 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 * |