Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0fd2b25c
Commit
0fd2b25c
authored
Apr 06, 2018
by
charpty
Browse files
Remove unnecessary return statements
Signed-off-by:
charpty
<
charpty@gmail.com
>
parent
8ac7af1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
0fd2b25c
...
@@ -2866,7 +2866,6 @@ void bytesToHuman(char *s, unsigned long long n) {
...
@@ -2866,7 +2866,6 @@ void bytesToHuman(char *s, unsigned long long n) {
if
(
n
<
1024
)
{
if
(
n
<
1024
)
{
/* Bytes */
/* Bytes */
sprintf
(
s
,
"%lluB"
,
n
);
sprintf
(
s
,
"%lluB"
,
n
);
return
;
}
else
if
(
n
<
(
1024
*
1024
))
{
}
else
if
(
n
<
(
1024
*
1024
))
{
d
=
(
double
)
n
/
(
1024
);
d
=
(
double
)
n
/
(
1024
);
sprintf
(
s
,
"%.2fK"
,
d
);
sprintf
(
s
,
"%.2fK"
,
d
);
...
...
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