1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 15:42:07 +02:00

Fix viewer count

This commit is contained in:
Alexandre Iooss
2020-10-19 20:05:20 +02:00
parent d263f743f7
commit e848d92a1a
2 changed files with 8 additions and 5 deletions

View File

@ -157,6 +157,7 @@ func statisticsHandler(w http.ResponseWriter, r *http.Request) {
stream, err := streams.Get(name)
if err == nil {
userCount = stream.ClientCount()
userCount += webrtc.GetNumberConnectedSessions(name)
}
// Display connected users statistics