diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-11 10:43:09 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-11-30 12:26:58 +0100 |
commit | 95a06d711178f20d0fe074a0b5db97727c06b1a4 (patch) | |
tree | db46a8d063505bcbd936a567599c6b3f3f1777bd /src | |
parent | d4753d6c3e41aa227809ca6adbc6bc663c1411ec (diff) |
no need to calculate chunk size in every iteration
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -626,12 +626,12 @@ int main(int argc, char *argv[]) fd = _cli.fd; file_size = _cli.content_len; + chunk_size = file_size / MAX_CHUNKS; for (i = 0; i < MAX_CHUNKS; i++) { k = select_file_chunk(file_chunk); snprintf(_filename, sizeof(_filename), "%s.%u", argv[2], k); filename = _filename; - chunk_size = file_size / MAX_CHUNKS; if (tip_client_run(&_cli, fd, addr, filename, k, chunk_size) < 0) goto err_bailout; |