summaryrefslogtreecommitdiff
path: root/service/ClusterGeoIpService.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-18 15:48:33 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-04-18 15:48:33 -0700
commitb3cac538cced1f9596c24a48dff0cf4b17147e20 (patch)
tree8c9e59e12b3d6e4ba579e30f005d3084f76c4fd3 /service/ClusterGeoIpService.cpp
parent587b1e05d158c5265ca1f3727d0d5c87ce9c782a (diff)
downloadinfinitytier-b3cac538cced1f9596c24a48dff0cf4b17147e20.tar.gz
infinitytier-b3cac538cced1f9596c24a48dff0cf4b17147e20.zip
Store lat/lon too for testing and future display use.
Diffstat (limited to 'service/ClusterGeoIpService.cpp')
-rw-r--r--service/ClusterGeoIpService.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/ClusterGeoIpService.cpp b/service/ClusterGeoIpService.cpp
index a4ff09a7..3ad69753 100644
--- a/service/ClusterGeoIpService.cpp
+++ b/service/ClusterGeoIpService.cpp
@@ -123,8 +123,8 @@ void ClusterGeoIpService::_parseLine(const char *line,std::vector<_V4E> &v4db,st
v4db.push_back(_V4E());
v4db.back().start = Utils::ntoh((uint32_t)(reinterpret_cast<const struct sockaddr_in *>(&ipStart)->sin_addr.s_addr));
v4db.back().end = Utils::ntoh((uint32_t)(reinterpret_cast<const struct sockaddr_in *>(&ipEnd)->sin_addr.s_addr));
- //v4db.back().lat = (float)lat;
- //v4db.back().lon = (float)lon;
+ v4db.back().lat = (float)lat;
+ v4db.back().lon = (float)lon;
v4db.back().x = x;
v4db.back().y = y;
v4db.back().z = z;
@@ -133,8 +133,8 @@ void ClusterGeoIpService::_parseLine(const char *line,std::vector<_V4E> &v4db,st
v6db.push_back(_V6E());
memcpy(v6db.back().start,reinterpret_cast<const struct sockaddr_in6 *>(&ipStart)->sin6_addr.s6_addr,16);
memcpy(v6db.back().end,reinterpret_cast<const struct sockaddr_in6 *>(&ipEnd)->sin6_addr.s6_addr,16);
- //v6db.back().lat = (float)lat;
- //v6db.back().lon = (float)lon;
+ v6db.back().lat = (float)lat;
+ v6db.back().lon = (float)lon;
v6db.back().x = x;
v6db.back().y = y;
v6db.back().z = z;