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
4b89ea3a
Commit
4b89ea3a
authored
Feb 18, 2016
by
Itamar Haber
Committed by
antirez
Feb 19, 2016
Browse files
Eliminates engineers near the equator & prime meridian
parent
0f46f9bd
Changes
1
Show whitespace changes
Inline
Side-by-side
src/geo.c
View file @
4b89ea3a
...
@@ -590,8 +590,8 @@ void georadiusGeneric(client *c, int type) {
...
@@ -590,8 +590,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
{
...
@@ -731,8 +731,8 @@ void geoposCommand(client *c) {
...
@@ -731,8 +731,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