mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Fixed a bug in the average latency metering of redis-cli --latency
This commit is contained in:
parent
43071993e1
commit
96674b6d95
@ -765,6 +765,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)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user