mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
maintain the listener_peak stat across relay restarts
svn path=/icecast/trunk/icecast/; revision=10033
This commit is contained in:
parent
78287d2a6f
commit
fce4c2263d
@ -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)
|
|||||||
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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user