From 4374b5b9c8a466aeec282c3af9c90cdeada5a8c9 Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Wed, 1 Feb 2017 18:25:28 -0300 Subject: [PATCH] Fix condition --- services/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/docker.go b/services/docker.go index 4f505f1..6b99dc8 100644 --- a/services/docker.go +++ b/services/docker.go @@ -192,7 +192,7 @@ func CreateInstance(session *Session, dindImage string) (*Instance, error) { var pidsLimit = int64(1000) if envLimit := os.Getenv("MAX_PROCESSES"); envLimit != "" { - if i, err := strconv.Atoi(envLimit); err != nil { + if i, err := strconv.Atoi(envLimit); err == nil { pidsLimit = int64(i) } }