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

Fix time calculation

parent b27ff56a
No related branches found
No related tags found
1 merge request!1Initial release
Pipeline #175 passed with stages
in 17 minutes and 23 seconds
...@@ -166,7 +166,7 @@ func checkDroplet(droplet godo.Droplet) { ...@@ -166,7 +166,7 @@ func checkDroplet(droplet godo.Droplet) {
} }
func checkDropletAge(droplet godo.Droplet) bool { 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) created, err := time.Parse(time.RFC3339, droplet.Created)
if err != nil { if err != nil {
logger.Printf("Could not parse created-timestamp for droplet ID %d", droplet.ID) 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