summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Kangas <gabek@real-ity.com>2022-01-12 21:03:50 -0800
committerGabe Kangas <gabek@real-ity.com>2022-01-12 21:03:50 -0800
commit44cb952c29ea499ff90e29490a4fb421d7e71d27 (patch)
tree18960accebccd5cc935b185bc4fd858a891b14ea
parent3ab5298f7fd284b5a0677b5c671d62e8fa42aca7 (diff)
Increase the timeout buffer so viewer count doesn't jump around when not pinging
-rw-r--r--core/stats.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/stats.go b/core/stats.go
index 1398dbf0e..4df3dc403 100644
--- a/core/stats.go
+++ b/core/stats.go
@@ -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()