mirror of
https://github.com/fluencelabs/redis
synced 2025-04-08 18:38:04 +00:00
redis-benchmark: bugfix - handle zero liveclients in right way
This commit is contained in:
parent
238c9bd086
commit
c0f611f12a
@ -614,7 +614,7 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData
|
|||||||
UNUSED(id);
|
UNUSED(id);
|
||||||
UNUSED(clientData);
|
UNUSED(clientData);
|
||||||
|
|
||||||
if (config.liveclients == 0) {
|
if (config.liveclients == 0 && config.requests_finished != config.requests) {
|
||||||
fprintf(stderr,"All clients disconnected... aborting.\n");
|
fprintf(stderr,"All clients disconnected... aborting.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user