Merge fmt_human_2 and fmt_human_10 to one function
Now only one function, fmt_human, takes an additional argument "base".
This commit is contained in:
parent
fc0dde5a60
commit
10dbc9543e
7 changed files with 44 additions and 46 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue