aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--commands/stats.go2
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),
}