From 3251c9f4e169f35d5f2410d777b848c49a91348a Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Mon, 15 Aug 2016 17:49:14 +0200 Subject: mcastleech: print dgrambuf stats at finalize_job state --- mcastseed/src/mcastleech.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mcastseed/src/mcastleech.c') diff --git a/mcastseed/src/mcastleech.c b/mcastseed/src/mcastleech.c index a23e73a..76e1e79 100644 --- a/mcastseed/src/mcastleech.c +++ b/mcastseed/src/mcastleech.c @@ -246,6 +246,7 @@ int receive_data() { int finalize_job() { ssize_t nwrite; int info_w, res; + char *stats; /* Don't eat reources in a pooling fashion, blocking IO is fine when no more recv to do */ set_O_NONBLOCK(1, 0); @@ -265,6 +266,11 @@ int finalize_job() { return res; } + res = dgrambuf_stats(dgrambuf, &stats); + if ( res != - 1 ) { + fprintf(stderr, "finalize_job(): dgrambuf_stats : %s\n",stats); + free(stats); + } return 0; } -- cgit v1.2.3