2 changed files with 21 additions and 2 deletions
@ -0,0 +1,17 @@ |
|||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in new issue