[xiph-commits] r7906 - icecast/branches/kh/icecast/src
karl at motherfish-iii.xiph.org
karl at motherfish-iii.xiph.org
Sat Oct 2 05:19:16 PDT 2004
Author: karl
Date: 2004-10-02 05:19:15 -0700 (Sat, 02 Oct 2004)
New Revision: 7906
Modified:
icecast/branches/kh/icecast/src/source.c
Log:
add per-source max listeners to stats
Modified: icecast/branches/kh/icecast/src/source.c
===================================================================
--- icecast/branches/kh/icecast/src/source.c 2004-10-02 12:17:12 UTC (rev 7905)
+++ icecast/branches/kh/icecast/src/source.c 2004-10-02 12:19:15 UTC (rev 7906)
@@ -1097,6 +1097,7 @@
stats_event (source->mount, "artist", NULL);
stats_event (source->mount, "title", NULL);
stats_event (source->mount, "ice-bitrate", NULL);
+ stats_event (source->mount, "max_listeners", NULL);
thread_mutex_unlock (&source->lock);
@@ -1280,6 +1281,14 @@
else
stats_event (source->mount, NULL, NULL);
+ if (source->max_listeners == -1)
+ stats_event (source->mount, "max_listeners", "unlimited");
+ else
+ {
+ char buf [10];
+ snprintf (buf, sizeof (buf), "%lu", source->max_listeners);
+ stats_event (source->mount, "max_listeners", buf);
+ }
DEBUG1 ("max listeners to %d", source->max_listeners);
DEBUG1 ("queue size to %u", source->queue_size_limit);
DEBUG1 ("burst size to %u", source->burst_size);
More information about the commits
mailing list