Tame down encoding performance alerts. Closes #338

This commit is contained in:
Gabe Kangas
2020-11-16 21:02:48 -08:00
parent bf4758d166
commit a24dbc418b
3 changed files with 8 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ func IsStreamConnected() bool {
// Kind of a hack. It takes a handful of seconds between a RTMP connection and when HLS data is available.
// So account for that with an artificial buffer of four segments.
timeSinceLastConnected := time.Since(_stats.LastConnectTime.Time).Seconds()
if timeSinceLastConnected < float64(config.Config.GetVideoSegmentSecondsLength())*2.0 {
if timeSinceLastConnected < float64(config.Config.GetVideoSegmentSecondsLength())*2.3 {
return false
}