change some bandwidth calculation

This commit is contained in:
ffdfgdfg
2019-11-23 00:42:46 +08:00
parent 9bb8230fc1
commit 405f41f87f
3 changed files with 31 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ const PoolSizeSmall = 100
const PoolSizeUdp = 1472
const PoolSizeCopy = 32 << 10
const PoolSizeBuffer = 4096
const PoolSizeWindow = PoolSizeBuffer - 16 - 32 - 32 - 8
const PoolSizeWindow = PoolSizeBuffer - 2 - 4 - 4 - 1
var BufPool = sync.Pool{
New: func() interface{} {