summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-09-19 00:01:09 +0200
committertiptorrent development team <tiptorrent@soleta.eu>2021-09-19 00:07:04 +0200
commitc8495d5a897f04ee8e6dd752d088f5d765cabc27 (patch)
treefb184f1bba4f7207bb3d27b7874e33a812d1d7c0
parent8cf20e663952b3a42568577d7f6e0066547422f7 (diff)
print stats to syslog
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 041309b..83ac1d8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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,