diff options
Diffstat (limited to 'proxy.c')
-rw-r--r-- | proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,10 +22,10 @@ format_bytes(char *buf, size_t len, uint64_t val) const char *suffix = "B"; tmp = val * 10; - if (tx > 1152921504606846976ULL) { + if (val > 1152921504606846976ULL) { tmp = val / 115292150460684697ULL; suffix= "EiB"; - } else if (tx > 1125899906842624ULL) { + } else if (val > 1125899906842624ULL) { tmp /= 1125899906842624ULL; suffix = "PiB"; } else if (val > 1099511627776ULL) { |