remove file size check
in preparation for multiprocessing. Each process downloads its own chunks, this check cannot be done unless there is a way to report each process the amount of bytes receives (via interprocess communication). Or simply use threads instead of process.multiprocess
parent
e01a38e4a7
commit
9e80376cb8
|
@ -667,12 +667,6 @@ int main(int argc, char *argv[])
|
|||
gettimeofday(&tv_stop, NULL);
|
||||
timersub(&tv_stop, &tv_start, &tv);
|
||||
|
||||
if (data_len != file_size) {
|
||||
syslog(LOG_ERR, "Failure, file size is %lu bytes but received %lu bytes!\n",
|
||||
file_size, data_len);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
return tip_client_report(&_cli, &tv, data_len);
|
||||
|
||||
err_bailout:
|
||||
|
|
Loading…
Reference in New Issue