mirror of https://github.com/v2ray/v2ray-core
parent
b16a82024c
commit
10bc421af9
|
@ -115,7 +115,7 @@ func init() {
|
|||
}
|
||||
size := f.GetValueAsInt(getDefaultPoolSize())
|
||||
if size > 0 {
|
||||
totalByteSize := size * 1024 * 1024
|
||||
totalByteSize := uint32(size) * 1024 * 1024
|
||||
mediumPool = NewBufferPool(Size, totalByteSize/Size)
|
||||
} else {
|
||||
mediumPool = NewSyncPool(Size)
|
||||
|
|
Loading…
Reference in New Issue