Browse Source

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

pull/1678/head
Gabe Kangas 4 years ago
parent
commit
44cb952c29
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 6
      core/stats.go

6
core/stats.go

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

Loading…
Cancel
Save