Increase the timeout buffer so viewer count doesn't jump around when not pinging

This commit is contained in:
Gabe Kangas 2022-01-12 21:03:50 -08:00
parent 3ab5298f7f
commit 44cb952c29
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -11,8 +11,10 @@ import (
"github.com/owncast/owncast/models" "github.com/owncast/owncast/models"
) )
var l = &sync.RWMutex{} var (
var _activeViewerPurgeTimeout = time.Second * 10 l = &sync.RWMutex{}
_activeViewerPurgeTimeout = time.Second * 15
)
func setupStats() error { func setupStats() error {
s := getSavedStats() s := getSavedStats()