summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-09-18 21:54:56 +0200
committertiptorrent development team <tiptorrent@soleta.eu>2021-09-18 21:54:56 +0200
commit24f629178d937d341de156313fa468ba6fce14bc (patch)
tree5690269a45abe7828b80faf81aec63c0187fcf07 /src/main.c
parente365ceb02448ad19362c1d8bfd3e48536afa9097 (diff)
display download rate in Mbytes/seconds
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 793dfb6..c334049 100644
--- a/src/main.c
+++ b/src/main.c
@@ -439,9 +439,10 @@ int main(int argc, char *argv[])
if (_cli.state == TIP_CLIENT_DONE) {
gettimeofday(&tv_stop, NULL);
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",
tv.tv_sec, tv.tv_usec,
+ _cli.data_len / 1024000 / tv.tv_sec,
tip_client_stats.direct_from_server,
tip_client_stats.redirects);
return EXIT_SUCCESS;