mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Merge pull request #707 from NanXiao/patch-1
Update src/redis-benchmark.c
This commit is contained in:
commit
d10a01bb6d
@ -201,7 +201,10 @@ static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
|
|||||||
if (config.requests_finished < config.requests)
|
if (config.requests_finished < config.requests)
|
||||||
config.latency[config.requests_finished++] = c->latency;
|
config.latency[config.requests_finished++] = c->latency;
|
||||||
c->pending--;
|
c->pending--;
|
||||||
if (c->pending == 0) clientDone(c);
|
if (c->pending == 0) {
|
||||||
|
clientDone(c);
|
||||||
|
break;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user