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
b5149f08
Commit
b5149f08
authored
Feb 18, 2016
by
Itamar Haber
Browse files
Eliminates engineers near the equator & prime meridian
parent
41030ae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/geo.c
View file @
b5149f08
...
@@ -588,8 +588,8 @@ void georadiusGeneric(client *c, int type) {
...
@@ -588,8 +588,8 @@ void georadiusGeneric(client *c, int type) {
if
(
withcoords
)
{
if
(
withcoords
)
{
addReplyMultiBulkLen
(
c
,
2
);
addReplyMultiBulkLen
(
c
,
2
);
addReplyDouble
(
c
,
gp
->
longitude
);
addReply
HumanLong
Double
(
c
,
gp
->
longitude
);
addReplyDouble
(
c
,
gp
->
latitude
);
addReply
HumanLong
Double
(
c
,
gp
->
latitude
);
}
}
}
}
}
else
{
}
else
{
...
@@ -726,8 +726,8 @@ void geoposCommand(client *c) {
...
@@ -726,8 +726,8 @@ void geoposCommand(client *c) {
continue
;
continue
;
}
}
addReplyMultiBulkLen
(
c
,
2
);
addReplyMultiBulkLen
(
c
,
2
);
addReplyDouble
(
c
,
xy
[
0
]);
addReply
HumanLong
Double
(
c
,
xy
[
0
]);
addReplyDouble
(
c
,
xy
[
1
]);
addReply
HumanLong
Double
(
c
,
xy
[
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