1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

maintain the listener_peak stat across relay restarts

svn path=/icecast/trunk/icecast/; revision=10033
This commit is contained in:
Karl Heyes 2005-09-19 02:11:16 +00:00
parent 78287d2a6f
commit fce4c2263d

View File

@ -589,8 +589,6 @@ static void source_init (source_t *source)
free(listenurl);
}
stats_event_args (source->mount, "listener_peak", "0");
if (source->dumpfilename != NULL)
{
source->dumpfile = fopen (source->dumpfilename, "ab");
@ -609,7 +607,7 @@ static void source_init (source_t *source)
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");