Skip to content

Commit

Permalink
Fixed stupid ahh mistake that was bitwise or instead of exponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Black-Speedy committed Dec 21, 2023
1 parent 8958257 commit ec09f0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WebShare-Connect/server.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit ec09f0d

Please sign in to comment.