Signed-off-by: Karel Zak <kzak@redhat.com>
uintmax_t x, frac = 0;
int base = 1024, rc = 0, pwr = 0, frac_zeros = 0;
- static const char *suf = "KMGTPEYZ";
- static const char *suf2 = "kmgtpeyz";
+ static const char *suf = "KMGTPEZY";
+ static const char *suf2 = "kmgtpezy";
const char *sp;
*res = 0;
}
/*
- * returns exponent (2^x=n) in range KiB..PiB
+ * returns exponent (2^x=n) in range KiB..EiB (2^10..2^60)
*/
static int get_exp(uint64_t n)
{