[xiph-commits] r7630 - icecast/branches/kh/icecast/src
karl at motherfish-iii.xiph.org
karl at motherfish-iii.xiph.org
Wed Aug 25 08:56:20 PDT 2004
Author: karl
Date: 2004-08-25 08:56:20 -0700 (Wed, 25 Aug 2004)
New Revision: 7630
Modified:
icecast/branches/kh/icecast/src/slave.c
Log:
make sure relays without mount definitions show properly
Modified: icecast/branches/kh/icecast/src/slave.c
===================================================================
--- icecast/branches/kh/icecast/src/slave.c 2004-08-25 13:51:13 UTC (rev 7629)
+++ icecast/branches/kh/icecast/src/slave.c 2004-08-25 15:56:20 UTC (rev 7630)
@@ -263,9 +263,12 @@
break;
}
stats_event_inc(NULL, "source_relay_connections");
+ stats_event (relay->localmount, "listeners", "0");
source_main (relay->source);
+ if (relay->on_demand == 0)
+ stats_event (relay->localmount, "listeners", NULL);
/* initiate an immediate relay cleanup run */
relay->cleanup = 1;
slave_rescan();
@@ -302,7 +305,10 @@
{
DEBUG1("Adding relay source at mountpoint \"%s\"", relay->localmount);
if (relay->on_demand)
+ {
+ stats_event (relay->localmount, "listeners", "0");
DEBUG0 ("setting on_demand");
+ }
relay->source->on_demand = relay->on_demand;
/* on-demand relays can be used as fallback mounts so allow
* for dependant mountpoints to show up on xsl pages*/
More information about the commits
mailing list