Skip to content

Commit

Permalink
Disable daily stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Berhent committed Aug 23, 2022
1 parent c8cb58d commit 310474a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/controller/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func StatsWorker(statsChan <-chan *gin.Context) {
// Update unique addresses
db.GetDB().UpdateStatsAddress(c.Query("address"))
// Update daily
db.GetDB().UpdateStatsDate(c.Query("address"))
// db.GetDB().UpdateStatsDate(c.Query("address"))
// Update clients
db.GetDB().UpdateStatsClient(c.ClientIP())
// Update by service
Expand All @@ -36,7 +36,7 @@ func Stats(c *gin.Context) {
numServedTotal := db.GetDB().StatsTotal()
svcStats := db.GetDB().ServiceStats()
//daily := db.GetDB().DailyStats()
today := db.GetDB().TodayStats()
// today := db.GetDB().TodayStats()
clientsServed := db.GetDB().ClientsServed()

// Return response
Expand All @@ -45,7 +45,7 @@ func Stats(c *gin.Context) {
"total_served": numServedTotal,
"unique_clients_served": clientsServed,
"services": svcStats,
"today": today,
// "today": today,
//"daily": daily,
})
}
Expand Down

0 comments on commit 310474a

Please sign in to comment.