summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy.c b/proxy.c
index 630d8d2..9fda0c5 100644
--- a/proxy.c
+++ b/proxy.c
@@ -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) {