Increase the timeout buffer so viewer count doesn't jump around when not pinging
This commit is contained in:
parent
3ab5298f7f
commit
44cb952c29
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user