mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 15:51:05 +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 {
|
} else {
|
||||||
if (latency < min) min = latency;
|
if (latency < min) min = latency;
|
||||||
if (latency > max) max = latency;
|
if (latency > max) max = latency;
|
||||||
|
tot += latency;
|
||||||
avg = (double) tot/count;
|
avg = (double) tot/count;
|
||||||
}
|
}
|
||||||
printf("\x1b[0G\x1b[2Kmin: %lld, max: %lld, avg: %.2f (%lld samples)",
|
printf("\x1b[0G\x1b[2Kmin: %lld, max: %lld, avg: %.2f (%lld samples)",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user