Adjusts accuracy for GEODIST

This commit is contained in:
Itamar Haber 2016-02-18 15:00:39 -08:00 committed by antirez
parent 79e553a58d
commit 9de844603c

View File

@ -772,6 +772,6 @@ void geodistCommand(client *c) {
if (!decodeGeohash(score1,xyxy) || !decodeGeohash(score2,xyxy+2))
addReply(c,shared.nullbulk);
else
addReplyDouble(c,
addReplyDoubleDistance(c,
geohashGetDistance(xyxy[0],xyxy[1],xyxy[2],xyxy[3]) / to_meter);
}