We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8111161 commit 1759c35Copy full SHA for 1759c35
pcap/pcap.go
@@ -74,7 +74,7 @@ func (p *pcapImpl) capturePackets(done <-chan struct{}, interfaceName, bpfFilter
74
75
now := time.Now()
76
if now.Sub(startTime) >= intervalLength {
77
- bufferLength := bufferTimeSum.Seconds() / intervalLength.Seconds()
+ bufferLength := float64(bufferTimeSum.Nanoseconds()) / float64(intervalLength.Nanoseconds())
78
printer.Debugf("Aproximate pcap buffer length: %v", bufferLength)
79
bufferTimeSum = 0 * time.Second
80
startTime = now
0 commit comments