mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-11 23:02:12 +08:00
fix bug of set tcp packet rate
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user