Commit e1d56df9 authored by Erick Hitter's avatar Erick Hitter

Fix threshold calculation

parent 297108a7
......@@ -163,7 +163,7 @@ func listDroplets(ctx context.Context, client *godo.Client) ([]godo.Droplet, err
}
func checkDropletAge(droplet godo.Droplet) {
thr := time.Now().Add(time.Duration(threshold))
thr := time.Now().Add(time.Duration(-threshold))
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