From c81a42cb3b9602d173cef6e1be47ee1a602a2862 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Wed, 15 Mar 2006 02:34:39 +0000 Subject: [PATCH] close report #842. It's more informative to report the read bytes svn path=/icecast/trunk/icecast/; revision=11006 --- src/source.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/source.c b/src/source.c index 68a7d681..ba282e70 100644 --- a/src/source.c +++ b/src/source.c @@ -199,6 +199,10 @@ void source_clear_source (source_t *source) source->parser = NULL; source->con = NULL; + /* log bytes read in access log */ + if (source->client && source->format) + source->client->con->sent_bytes = source->format->read_bytes; + if (source->dumpfile) { INFO1 ("Closing dumpfile for %s", source->mount);