From ec09f0d90156a24dd0831752cda9565787bd4561 Mon Sep 17 00:00:00 2001 From: Black-Speedy Date: Thu, 21 Dec 2023 04:00:27 +0100 Subject: [PATCH] Fixed stupid ahh mistake that was bitwise or instead of exponent --- WebShare-Connect/server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebShare-Connect/server.c b/WebShare-Connect/server.c index c48fb0f..7233d7d 100644 --- a/WebShare-Connect/server.c +++ b/WebShare-Connect/server.c @@ -84,7 +84,8 @@ void server_send(zsock_t* serv_sock, const char* file_path) chunk_size = CHUNK_SIZE_50GB; } else { - chunk_size = 2 ^ 24; + // 2^24 = 16 MiB + chunk_size = 1 << 24; } printf("Chunk size: %d bytes\n", chunk_size);