summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/redis-cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index 5091160a7..4a7d855d2 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -762,6 +762,7 @@ static void latencyMode(void) {
} else {
if (latency < min) min = latency;
if (latency > max) max = latency;
+ tot += latency;
avg = (double) tot/count;
}
printf("\x1b[0G\x1b[2Kmin: %lld, max: %lld, avg: %.2f (%lld samples)",