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:
Aaron Marcher
2018-05-21 14:44:21 +02:00
parent fc0dde5a60
commit 10dbc9543e
7 changed files with 44 additions and 46 deletions

View File

@ -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 *