Skip to content
Snippets Groups Projects
Commit e1d56df9 authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix threshold calculation

parent 297108a7
No related branches found
No related tags found
Loading
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment