1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Update: Improved statistic update logic a bit

This commit is contained in:
Philipp Schafft 2020-09-30 17:28:22 +00:00
parent 4f56236cbc
commit e86a46ee4a

View File

@ -423,8 +423,8 @@ void source_move_clients(source_t *source, source_t *dest)
ICECAST_LOG_INFO("passing %lu listeners to \"%s\"", count, dest->mount); ICECAST_LOG_INFO("passing %lu listeners to \"%s\"", count, dest->mount);
source->listeners = 0; source->listeners -= count;
stats_event(source->mount, "listeners", "0"); stats_event_sub(source->mount, "listeners", count);
} while (0); } while (0);
avl_tree_unlock(source->pending_tree); avl_tree_unlock(source->pending_tree);