[xiph-commits] r9346 - in icecast/branches/kh/icecast: doc src
karl at motherfish-iii.xiph.org
karl at motherfish-iii.xiph.org
Fri Jun 3 18:03:06 PDT 2005
Author: karl
Date: 2005-06-03 18:03:02 -0700 (Fri, 03 Jun 2005)
New Revision: 9346
Modified:
icecast/branches/kh/icecast/doc/icecast2_config_file.html
icecast/branches/kh/icecast/src/source.c
icecast/branches/kh/icecast/src/source.h
Log:
add listener peak stats and sync-up docs
Modified: icecast/branches/kh/icecast/doc/icecast2_config_file.html
===================================================================
--- icecast/branches/kh/icecast/doc/icecast2_config_file.html 2005-06-03 15:35:52 UTC (rev 9345)
+++ icecast/branches/kh/icecast/doc/icecast2_config_file.html 2005-06-04 01:03:02 UTC (rev 9346)
@@ -432,9 +432,11 @@
</div>
<h4>intro</h4>
<div class="indentedbox">
-An optional value which will specify the file those contents will be sent to new listeners when they
-connect but before the normal stream is sent. Make sure the format of the file specified matches the
-streaming format. The specified file is appended to webroot before being opened.
+ <p>An optional value which will specify the file those contents will be sent to new listeners
+ when they connect but before the normal stream is sent. Make sure the format of the file
+ specified matches the streaming format. The specified file is appended to webroot before
+ being opened.
+ </p>
</div>
<h4>fallback-mount</h4>
<div class="indentedbox">
Modified: icecast/branches/kh/icecast/src/source.c
===================================================================
--- icecast/branches/kh/icecast/src/source.c 2005-06-03 15:35:52 UTC (rev 9345)
+++ icecast/branches/kh/icecast/src/source.c 2005-06-04 01:03:02 UTC (rev 9346)
@@ -625,6 +625,11 @@
{
source->prev_listeners = source->listeners;
INFO2("listener count on %s now %lu", source->mount, source->listeners);
+ if (source->listeners > source->peak_listeners)
+ {
+ source->peak_listeners = source->listeners;
+ stats_event_args (source->mount, "listener_peak", "%lu", source->peak_listeners);
+ }
stats_event_args (source->mount, "listeners", "%lu", source->listeners);
if (source->listeners == 0)
rate_add (source->format->out_bitrate, 0, 0);
Modified: icecast/branches/kh/icecast/src/source.h
===================================================================
--- icecast/branches/kh/icecast/src/source.h 2005-06-03 15:35:52 UTC (rev 9345)
+++ icecast/branches/kh/icecast/src/source.h 2005-06-04 01:03:02 UTC (rev 9346)
@@ -49,6 +49,7 @@
char *dumpfilename; /* Name of a file to dump incoming stream to */
FILE *dumpfile;
+ unsigned long peak_listeners;
unsigned long listeners;
unsigned long prev_listeners;
long max_listeners;
More information about the commits
mailing list