implement live user count

master
nate smith 2019-09-09 14:21:17 -05:00
parent b79b5bf284
commit 7c2efec9e7
1 changed files with 7 additions and 2 deletions

View File

@ -195,8 +195,13 @@ func getUsers() (users []User) {
} }
func liveUserCount(users []User) int { func liveUserCount(users []User) int {
// TODO count := 0
return 0 for _, u := range users {
if !u.DefaultPage {
count++
}
}
return count
} }
func activeUserCount() int { func activeUserCount() int {