change default capture rate

This commit is contained in:
hebo
2019-09-27 12:42:59 +08:00
parent fcdfbfeb0d
commit b57c87a86d
2 changed files with 2 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ func (cprc *capturePacketRateConfig) setVal (val interface{}) (err error){
return
}
fmt.Printf("set config %s: %v", CAPTURE_PACKET_RATE, realVal)
cprc.mysqlTPR = realVal
cprc.tcpTPR = math.Sqrt(realVal)
return