fix bug of set tcp packet rate
This commit is contained in:
parent
39b5661e9f
commit
fce024683a
|
@ -117,7 +117,7 @@ func (nc *networkCard) listenNormal() {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// capture packets according to a certain probability
|
// capture packets according to a certain probability
|
||||||
capturePacketRate := communicator.GetMysqlCapturePacketRate()
|
capturePacketRate := communicator.GetTCPCapturePacketRate()
|
||||||
if capturePacketRate <= 0 {
|
if capturePacketRate <= 0 {
|
||||||
time.Sleep(time.Second*1)
|
time.Sleep(time.Second*1)
|
||||||
aliveCounter += 1
|
aliveCounter += 1
|
||||||
|
|
Loading…
Reference in New Issue