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
9de84460
"vscode:/vscode.git/clone" did not exist on "27f4c212f377dfbe1a60fb96635ae16bc405b959"
Commit
9de84460
authored
Feb 18, 2016
by
Itamar Haber
Committed by
antirez
Feb 19, 2016
Browse files
Adjusts accuracy for GEODIST
parent
79e553a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/geo.c
View file @
9de84460
...
...
@@ -772,6 +772,6 @@ void geodistCommand(client *c) {
if
(
!
decodeGeohash
(
score1
,
xyxy
)
||
!
decodeGeohash
(
score2
,
xyxy
+
2
))
addReply
(
c
,
shared
.
nullbulk
);
else
addReplyDouble
(
c
,
addReplyDouble
Distance
(
c
,
geohashGetDistance
(
xyxy
[
0
],
xyxy
[
1
],
xyxy
[
2
],
xyxy
[
3
])
/
to_meter
);
}
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