Skip to content

Commit 9be47e5

Browse files
committed
Add reset log
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
1 parent 54c8c33 commit 9be47e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

perfTest/cmd/silent.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ func printStats() {
9494
for {
9595
select {
9696
case _ = <-tickerReset.C:
97-
logInfo("Resetting counters...")
98-
atomic.SwapInt32(&publisherMessageCount, 0)
97+
logInfo("***********Resetting counters***********")
9998
atomic.SwapInt32(&consumerMessageCount, 0)
100-
atomic.SwapInt64(&totalLatency, 0)
101-
atomic.SwapInt32(&confirmedMessageCount, 0)
10299
atomic.SwapInt32(&notConfirmedMessageCount, 0)
100+
atomic.SwapInt32(&confirmedMessageCount, 0)
101+
atomic.SwapInt32(&publisherMessageCount, 0)
102+
atomic.SwapInt64(&totalLatency, 0)
103103
start = time.Now()
104104
}
105105
}

0 commit comments

Comments
 (0)