[xiph-commits] r10033 - icecast/trunk/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Sun Sep 18 19:11:18 PDT 2005


Author: karl
Date: 2005-09-18 19:11:16 -0700 (Sun, 18 Sep 2005)
New Revision: 10033

Modified:
   icecast/trunk/icecast/src/source.c
Log:
maintain the listener_peak stat across relay restarts


Modified: icecast/trunk/icecast/src/source.c
===================================================================
--- icecast/trunk/icecast/src/source.c	2005-09-19 00:07:53 UTC (rev 10032)
+++ icecast/trunk/icecast/src/source.c	2005-09-19 02:11:16 UTC (rev 10033)
@@ -589,8 +589,6 @@
         free(listenurl);
     }
 
-    stats_event_args (source->mount, "listener_peak", "0");
-
     if (source->dumpfilename != NULL)
     {
         source->dumpfile = fopen (source->dumpfilename, "ab");
@@ -609,7 +607,7 @@
     stats_event_inc (NULL, "source_total_connections");
     stats_event (source->mount, "slow_listeners", "0");
     stats_event_args (source->mount, "listeners", "%lu", source->listeners);
-    stats_event (source->mount, "listener_peak", "0");
+    stats_event_args (source->mount, "listener_peak", "%lu", source->peak_listeners);
     stats_event_time (source->mount, "stream_start");
 
     DEBUG0("Source creation complete");



More information about the commits mailing list