summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 36cba55..041309b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -401,6 +401,7 @@ int main(int argc, char *argv[])
{
struct timeval tv_start, tv_stop, tv;
bool file_chunk[MAX_CHUNKS] = {};
+ uint64_t data_len = 0;
int i, k;
if (argc != 3) {
@@ -433,6 +434,7 @@ int main(int argc, char *argv[])
ev_loop(tip_main_loop, 0);
file_chunk[k] = true;
+ data_len += _cli.data_len;
}
if (_cli.state == TIP_CLIENT_DONE) {
@@ -441,7 +443,7 @@ int main(int argc, char *argv[])
printf("Done in %lu.%06lu seconds (%lu Mbytes/second). "
"Direct from server: %u Redirected: %u\n",
tv.tv_sec, tv.tv_usec,
- _cli.data_len / 1024000 / tv.tv_sec,
+ data_len / 1024000 / tv.tv_sec,
tip_client_stats.direct_from_server,
tip_client_stats.redirects);
return EXIT_SUCCESS;