You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
712 B
17 lines
712 B
Index: src/github.com/ochinchina/supervisord/rlimit.go |
|
--- src/github.com/ochinchina/supervisord/rlimit.go.orig 2020-03-08 22:43:16.000000000 +0100 |
|
+++ src/github.com/ochinchina/supervisord/rlimit.go 2020-03-08 22:46:18.539286000 +0100 |
|
@@ -41,11 +41,11 @@ |
|
return fmt.Errorf("fail to get the %s limit", resourceName) |
|
} |
|
|
|
- if minRequiredSource > limit.Max { |
|
+ if minRequiredSource > uint64(limit.Max) { |
|
return fmt.Errorf("%s %d is greater than Hard limit %d", resourceName, minRequiredSource, limit.Max) |
|
} |
|
|
|
- if limit.Cur >= minRequiredSource { |
|
+ if uint64(limit.Cur) >= minRequiredSource { |
|
return nil |
|
} |
|
|
|
|