Commit bd5eca7c authored by Erick Hitter's avatar Erick Hitter

Fix time calculation

parent b27ff56a
Pipeline #175 passed with stages
in 17 minutes and 23 seconds
......@@ -166,7 +166,7 @@ func checkDroplet(droplet godo.Droplet) {
}
func checkDropletAge(droplet godo.Droplet) bool {
thr := time.Now().Add(time.Duration(-threshold))
thr := time.Now().Add(time.Duration(-threshold) * time.Second)
created, err := time.Parse(time.RFC3339, droplet.Created)
if err != nil {
logger.Printf("Could not parse created-timestamp for droplet ID %d", droplet.ID)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment