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

Fix threshold calculation

parent 297108a7
Branches
Tags
1 merge request!1Initial release
......@@ -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.
Please register or to comment