1
0
Эх сурвалжийг харах

Fix debug.SetMemoryLimit usage

世界 2 жил өмнө
parent
commit
678f6ef72f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      debug_go119.go

+ 1 - 1
debug_go119.go

@@ -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 {