Merge pull request #4575 from soloestoy/bugfix-benchmark

redis-benchmark: bugfix - handle zero liveclients in right way
This commit is contained in:
Salvatore Sanfilippo 2018-01-12 17:43:01 +01:00 committed by GitHub
commit aeeb747796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -614,7 +614,7 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData
UNUSED(id);
UNUSED(clientData);
if (config.liveclients == 0) {
if (config.liveclients == 0 && config.requests_finished != config.requests) {
fprintf(stderr,"All clients disconnected... aborting.\n");
exit(1);
}