fix bug of set tcp packet rate

This commit is contained in:
hebo 2019-10-10 09:49:46 +08:00
parent 39b5661e9f
commit fce024683a
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ func (nc *networkCard) listenNormal() {
var err error
// capture packets according to a certain probability
capturePacketRate := communicator.GetMysqlCapturePacketRate()
capturePacketRate := communicator.GetTCPCapturePacketRate()
if capturePacketRate <= 0 {
time.Sleep(time.Second*1)
aliveCounter += 1