Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
aeeb7477
Unverified
Commit
aeeb7477
authored
Jan 12, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jan 12, 2018
Browse files
Merge pull request #4575 from soloestoy/bugfix-benchmark
redis-benchmark: bugfix - handle zero liveclients in right way
parents
72187fa8
c0f611f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
aeeb7477
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment