This commit is contained in:
Ingo Oppermann 2022-08-19 11:23:02 +03:00
parent a91ced0e6d
commit 59cc4c67e8
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -1389,9 +1389,18 @@ class Restreamer {
continue;
}
// Don't count viewers where nothing is transmitted.
if (s.bandwidth_tx_kbit === 0) {
continue;
}
// Don't count ffmpeg as session, only the bandwidth, otherwise
// the ingest and every running publication service would be
// considered as a viewer.
if (p !== 'ffmpeg') {
sessions.sessions++;
}
sessions.bitrate_kbit += s.bandwidth_tx_kbit;
}
}