diff options
author | Gabe Kangas <gabek@real-ity.com> | 2022-01-12 21:03:50 -0800 |
---|---|---|
committer | Gabe Kangas <gabek@real-ity.com> | 2022-01-12 21:03:50 -0800 |
commit | 44cb952c29ea499ff90e29490a4fb421d7e71d27 (patch) | |
tree | 18960accebccd5cc935b185bc4fd858a891b14ea | |
parent | 3ab5298f7fd284b5a0677b5c671d62e8fa42aca7 (diff) |
Increase the timeout buffer so viewer count doesn't jump around when not pinging
-rw-r--r-- | core/stats.go | 6 |
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() |