Commit c0f611f1 authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

redis-benchmark: bugfix - handle zero liveclients in right way

parent 238c9bd0
...@@ -614,7 +614,7 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData ...@@ -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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment