Show in the UI how long the user has been streaming for. Closes #59
This commit is contained in:
+6
-4
@@ -2,15 +2,17 @@ package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/gabek/owncast/utils"
|
||||
)
|
||||
|
||||
//Stats holds the stats for the system
|
||||
type Stats struct {
|
||||
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
||||
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
||||
LastDisconnectTime time.Time `json:"lastDisconnectTime"`
|
||||
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
||||
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
||||
LastDisconnectTime utils.NullTime `json:"lastDisconnectTime"`
|
||||
|
||||
StreamConnected bool `json:"-"`
|
||||
LastConnectTime time.Time `json:"-"`
|
||||
LastConnectTime utils.NullTime `json:"-"`
|
||||
Clients map[string]time.Time `json:"-"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user