From af3e3ee1bcab1f530a36196c2863a49694b5acfe Mon Sep 17 00:00:00 2001 From: 1e99 Date: Tue, 1 Jul 2025 17:46:10 +0200 Subject: [PATCH] update time precisions yet again --- routes/api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/api.go b/routes/api.go index 948df0e..3178a31 100644 --- a/routes/api.go +++ b/routes/api.go @@ -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)