diff options
| -rw-r--r-- | commands/stats.go | 2 | ||||
| -rw-r--r-- | exp/functions.go | 2 |
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) } |
