From 6ec3cf37300c1faf92c62640d1d5fe2638749c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 31 Aug 2025 16:16:36 +0200 Subject: feat(debug): decrease reduce time --- commands/stats.go | 2 -- exp/functions.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/stats.go b/commands/stats.go index 06b10bd..3422e2a 100644 --- a/commands/stats.go +++ b/commands/stats.go @@ -158,8 +158,6 @@ func stats(s *discordgo.Session, i *discordgo.InteractionCreate, days uint, exec t := raw.CreatedAt.Unix() - now if !gokord.Debug { t = int64(math.Ceil(float64(t) / (24 * 60 * 60))) - } else { - t = int64(math.Ceil(float64(t) / 6)) } pts[int64(days)-t] = plotter.XY{ X: float64(t), diff --git a/exp/functions.go b/exp/functions.go index ebd0761..2608094 100644 --- a/exp/functions.go +++ b/exp/functions.go @@ -53,7 +53,7 @@ func LevelXP(level uint) uint { func TimeStampNDaysBefore(n uint) string { var unix time.Time if gokord.Debug { - unix = time.Unix(time.Now().Unix()-int64(n*6), 0) // reduce time for debug + unix = time.Unix(time.Now().Unix()-int64(n), 0) // reduce time for debug } else { unix = time.Unix(time.Now().Unix()-int64(n*24*60*60), 0) } -- cgit v1.2.3