This commit is contained in:
Bel LaPointe
2023-10-27 20:29:28 -06:00
parent 950e54b1de
commit 7908530b52

View File

@@ -6,7 +6,7 @@ import (
)
func predictionTimes(window time.Duration) []time.Time {
result := []time.Time{}
result := []time.Time{time.Now()}
last := time.Now()
for last.Before(time.Now().Add(window)) {
last = last.Add(-1 * time.Hour * 24 * time.Duration(last.Day())).Add(time.Hour * 24 * 33)