update time precisions yet again
This commit is contained in:
parent
760391c6eb
commit
af3e3ee1bc
1 changed files with 3 additions and 3 deletions
|
@ -24,15 +24,15 @@ func GetPlayerCounts(db *sql.DB, logger *log.Logger) http.HandlerFunc {
|
|||
|
||||
case "7d":
|
||||
timeRange = 7 * 60 * 24
|
||||
precision = 15
|
||||
precision = 30
|
||||
|
||||
case "30d":
|
||||
timeRange = 30 * 60 * 24
|
||||
precision = 60
|
||||
precision = 2 * 60
|
||||
|
||||
case "356d":
|
||||
timeRange = 356 * 60 * 24
|
||||
precision = 60 * 12
|
||||
precision = 60 * 24
|
||||
|
||||
default:
|
||||
http.Error(res, "invalid time range", http.StatusBadRequest)
|
||||
|
|
Loading…
Add table
Reference in a new issue