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
f0a58bfa
Commit
f0a58bfa
authored
Jul 04, 2014
by
antirez
Browse files
redis-benchmark: abort when all clients are disconnected.
parent
d3514edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
f0a58bfa
...
...
@@ -592,6 +592,11 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData
REDIS_NOTUSED
(
id
);
REDIS_NOTUSED
(
clientData
);
if
(
config
.
liveclients
==
0
)
{
fprintf
(
stderr
,
"All clients disconnected... aborting."
);
exit
(
1
);
}
if
(
config
.
csv
)
return
250
;
float
dt
=
(
float
)(
mstime
()
-
config
.
start
)
/
1000
.
0
;
float
rps
=
(
float
)
config
.
requests_finished
/
dt
;
...
...
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