mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
Fix debug.SetMemoryLimit usage
This commit is contained in:
parent
ae8187ed15
commit
678f6ef72f
|
@ -27,7 +27,7 @@ func applyDebugOptions(options option.DebugOptions) {
|
|||
debug.SetTraceback(options.TraceBack)
|
||||
}
|
||||
if options.MemoryLimit != 0 {
|
||||
debug.SetMemoryLimit(int64(options.MemoryLimit))
|
||||
debug.SetMemoryLimit(int64(float64(options.MemoryLimit) / 1.5))
|
||||
conntrack.MemoryLimit = uint64(options.MemoryLimit)
|
||||
}
|
||||
if options.OOMKiller != nil {
|
||||
|
|
Loading…
Reference in a new issue