]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/stats.go
Refactoring, cleanup, test backfilling
[rbdr/mobius] / hotline / stats.go
index 4fa683ad0161c51447c9076d393cf6c06c97c040..d1a3c5f84dcb6bc572baff87fb64f017ce09c73d 100644 (file)
@@ -1,6 +1,7 @@
 package hotline
 
 import (
+       "sync"
        "time"
 )
 
@@ -8,10 +9,12 @@ type Stats struct {
        CurrentlyConnected  int
        DownloadsInProgress int
        UploadsInProgress   int
+       WaitingDownloads    int
        ConnectionPeak      int
+       ConnectionCounter   int
        DownloadCounter     int
        UploadCounter       int
+       Since               time.Time
 
-       LoginCount int       `yaml:"login count"`
-       StartTime  time.Time `yaml:"start time"`
+       sync.Mutex
 }