update time precisions yet again

This commit is contained in:
1e99 2025-07-01 17:46:10 +02:00
parent 760391c6eb
commit af3e3ee1bc

View file

@ -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)