diff options
| author | William Hergès <william@herges.fr> | 2025-08-31 16:47:01 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-08-31 16:47:01 +0200 |
| commit | 355db490b72f51e312d599bd38c7e412cbb94691 (patch) | |
| tree | 23d59f999b2fb542f7942b81e1079d89b303aa76 /commands | |
| parent | a23130addc0a8e988a5b360b97d72d2917253831 (diff) | |
fix(stats): index out of range again
cannot be tested in debug mode
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/stats.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/stats.go b/commands/stats.go index ccd9412..263d80c 100644 --- a/commands/stats.go +++ b/commands/stats.go @@ -164,7 +164,7 @@ func stats(s *discordgo.Session, i *discordgo.InteractionCreate, days uint, exec if !gokord.Debug { t = int64(math.Ceil(float64(t) / (24 * 60 * 60))) } - pts[int64(days)+t] = plotter.XY{ // because t <= 0 + pts[int64(days)+t-1] = plotter.XY{ // because t <= 0 X: float64(t), Y: float64(raw.XP), } |
