diff options
| author | William Hergès <william@herges.fr> | 2025-08-31 16:19:57 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-08-31 16:19:57 +0200 |
| commit | 6ac00e89615838154607319bdff428f778bdd432 (patch) | |
| tree | 5db0866295e94a7917551aa5aa0ad5b5badb7f23 | |
| parent | 6ec3cf37300c1faf92c62640d1d5fe2638749c97 (diff) | |
fix(stats): another index out of range
| -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 3422e2a..3d487d3 100644 --- a/commands/stats.go +++ b/commands/stats.go @@ -159,7 +159,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{ + pts[int64(days)+t] = plotter.XY{ // because t <= 0 X: float64(t), Y: float64(raw.XP), } |
