aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-08-31 16:16:36 +0200
committerWilliam Hergès <william@herges.fr>2025-08-31 16:16:36 +0200
commit6ec3cf37300c1faf92c62640d1d5fe2638749c97 (patch)
tree30bdb68ad785344700c29070a56bb82e27e8371b
parent1200d0aef43d2ba771f3262e5adf23b8dc8577d0 (diff)
feat(debug): decrease reduce time
-rw-r--r--commands/stats.go2
-rw-r--r--exp/functions.go2
2 files changed, 1 insertions, 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)
}