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
4cb5bd4e
Unverified
Commit
4cb5bd4e
authored
Jul 12, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jul 12, 2018
Browse files
Merge pull request #4820 from charpty/wip-serverc-simplify
Remove unnecessary return statements
parents
8d6b7861
0fd2b25c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
4cb5bd4e
...
@@ -2920,7 +2920,6 @@ void bytesToHuman(char *s, unsigned long long n) {
...
@@ -2920,7 +2920,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