소스 검색

Use different formula for calculating proxy buffer

tags/v1.0.5^2
9seconds 6 년 전
부모
커밋
25edb60f2c
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4
    2
      config/config.go

+ 4
- 2
config/config.go 파일 보기

143
 	}
143
 	}
144
 
144
 
145
 	fvalue := float64(value)
145
 	fvalue := float64(value)
146
-	newValue := fvalue * 1.5 * math.Log2(float64(c.MultiplexPerConnection))
147
-	newValue = math.Max(fvalue, math.Ceil(newValue))
146
+
147
+	newValue := fvalue * 2 * math.Log(float64(c.MultiplexPerConnection))
148
+	newValue = math.Ceil(newValue)
149
+	newValue = math.Max(fvalue, newValue)
148
 
150
 
149
 	return int(newValue)
151
 	return int(newValue)
150
 }
152
 }

Loading…
취소
저장