Commit fce4c226 authored by Karl Heyes's avatar Karl Heyes

maintain the listener_peak stat across relay restarts

svn path=/icecast/trunk/icecast/; revision=10033
parent 78287d2a
...@@ -589,8 +589,6 @@ static void source_init (source_t *source) ...@@ -589,8 +589,6 @@ static void source_init (source_t *source)
free(listenurl); free(listenurl);
} }
stats_event_args (source->mount, "listener_peak", "0");
if (source->dumpfilename != NULL) if (source->dumpfilename != NULL)
{ {
source->dumpfile = fopen (source->dumpfilename, "ab"); source->dumpfile = fopen (source->dumpfilename, "ab");
...@@ -609,7 +607,7 @@ static void source_init (source_t *source) ...@@ -609,7 +607,7 @@ static void source_init (source_t *source)
stats_event_inc (NULL, "source_total_connections"); stats_event_inc (NULL, "source_total_connections");
stats_event (source->mount, "slow_listeners", "0"); stats_event (source->mount, "slow_listeners", "0");
stats_event_args (source->mount, "listeners", "%lu", source->listeners); 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"); stats_event_time (source->mount, "stream_start");
DEBUG0("Source creation complete"); DEBUG0("Source creation complete");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment