display download rate in Mbytes/seconds
parent
e365ceb024
commit
24f629178d
|
@ -439,9 +439,10 @@ int main(int argc, char *argv[])
|
||||||
if (_cli.state == TIP_CLIENT_DONE) {
|
if (_cli.state == TIP_CLIENT_DONE) {
|
||||||
gettimeofday(&tv_stop, NULL);
|
gettimeofday(&tv_stop, NULL);
|
||||||
timersub(&tv_stop, &tv_start, &tv);
|
timersub(&tv_stop, &tv_start, &tv);
|
||||||
printf("Done in %lus.%lums. "
|
printf("Done in %lu.%06lu seconds (%lu Mbytes/second). "
|
||||||
"Direct from server: %u Redirected: %u\n",
|
"Direct from server: %u Redirected: %u\n",
|
||||||
tv.tv_sec, tv.tv_usec,
|
tv.tv_sec, tv.tv_usec,
|
||||||
|
_cli.data_len / 1024000 / tv.tv_sec,
|
||||||
tip_client_stats.direct_from_server,
|
tip_client_stats.direct_from_server,
|
||||||
tip_client_stats.redirects);
|
tip_client_stats.redirects);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue