mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-17 20:57:29 +08:00
Fix condition
This commit is contained in:
parent
434256f9cc
commit
4374b5b9c8
@ -192,7 +192,7 @@ func CreateInstance(session *Session, dindImage string) (*Instance, error) {
|
|||||||
|
|
||||||
var pidsLimit = int64(1000)
|
var pidsLimit = int64(1000)
|
||||||
if envLimit := os.Getenv("MAX_PROCESSES"); envLimit != "" {
|
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)
|
pidsLimit = int64(i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user