aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/stats.go2
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),
}