diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-11 00:24:14 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-11 00:24:14 +0200 |
commit | 5bb6e86e0747ce57ab2033d1b878c49d0035dc00 (patch) | |
tree | 8d6ecd34b5c75915cd055a8029dbc3f41f28ffc8 /proxy.c | |
parent | 97d4714958663f2f463567664d8500984be6f704 (diff) |
Slightly less log spam
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) { |