Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Ignore old per-session peak viewer counts when reading stats file.
Gabe Kangasa27d79c75ade
diff --git a/core/stats.go b/core/stats.goindex ae787456a6..cc017cc59c 100644--- a/core/stats.go+++ b/core/stats.go@@ -141,5 +141,11 @@ func getSavedStats() (models.Stats, error) {return result, err}+ // If the stats were saved > 5min ago then ignore the+ // peak session count value, since the session is over.+ if !result.LastDisconnectTime.Valid || time.Since(result.LastDisconnectTime.Time).Minutes() > 5 {+ result.SessionMaxViewerCount = 0+ }+return result, err}