Code cleanup (#353)

This commit is contained in:
David Colburn
2022-01-19 02:13:06 -08:00
committed by GitHub
parent 6400de1c10
commit 5bea9debb7
35 changed files with 223 additions and 218 deletions
+3 -3
View File
@@ -108,9 +108,9 @@ func (s *StatsWorker) calculateTotalBytesPackets(allBuffers []*buffer.Buffer) (t
totalBytes = 0
totalPackets = 0
for _, buffer := range allBuffers {
totalBytes += buffer.GetStats().TotalByte
totalPackets += buffer.GetStats().PacketCount
for _, buff := range allBuffers {
totalBytes += buff.GetStats().TotalByte
totalPackets += buff.GetStats().PacketCount
}
return totalBytes, totalPackets
}