From fce024683af3f8c02c81449f21e946f459599cfd Mon Sep 17 00:00:00 2001 From: hebo Date: Thu, 10 Oct 2019 09:49:46 +0800 Subject: [PATCH] fix bug of set tcp packet rate --- capture/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capture/network.go b/capture/network.go index e9bada0..33cdedc 100644 --- a/capture/network.go +++ b/capture/network.go @@ -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