print stats to syslog

master
tiptorrent development team 2021-09-19 00:01:09 +02:00
parent 8cf20e6639
commit c8495d5a89
1 changed files with 2 additions and 1 deletions

View File

@ -440,7 +440,8 @@ 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 %lu.%06lu seconds (%lu Mbytes/second). "
printf("OK.\n");
syslog(LOG_INFO, "Done in %lu.%06lu seconds (%lu Mbytes/second). "
"Direct from server: %u Redirected: %u\n",
tv.tv_sec, tv.tv_usec,
data_len / 1024000 / tv.tv_sec,