From 1067f8b39d2cadc8955b415ea4ee24d34def3f5b Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Sat, 27 Jun 2020 18:50:48 +0200 Subject: [PATCH] lastEnnoblementAt should subtract from time.Now() 1 minute, not 60 --- cron/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/handler.go b/cron/handler.go index 8212929..0acd76e 100644 --- a/cron/handler.go +++ b/cron/handler.go @@ -47,7 +47,7 @@ func (h *handler) loadEnnoblements(servers []string) map[string]ennoblements { lastEnnoblementAt, ok := h.lastEnnoblementAt[w] if !ok { - lastEnnoblementAt = time.Now().Add(-60 * time.Minute) + lastEnnoblementAt = time.Now().Add(-1 * time.Minute) } m[w] = filterEnnoblements(es, lastEnnoblementAt)