summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-11 00:24:14 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-11 00:24:14 +0200
commit5bb6e86e0747ce57ab2033d1b878c49d0035dc00 (patch)
tree8d6ecd34b5c75915cd055a8029dbc3f41f28ffc8 /proxy.c
parent97d4714958663f2f463567664d8500984be6f704 (diff)
Slightly less log spam
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) {