From a276ca7ed00f39ded448d7e5f4dff109d6d3b593 Mon Sep 17 00:00:00 2001 From: Manuel Calavera Date: Fri, 25 Oct 2019 13:26:25 -0700 Subject: [PATCH] fix: offset adding --- api/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.js b/api/api.js index acaba11e..a0793f13 100644 --- a/api/api.js +++ b/api/api.js @@ -645,8 +645,8 @@ async function getClusterInfo() { let offsetLat = randomOffset(ip); let offsetLng = randomOffset(tpu); - let lat = ((ll && ll[0]) || DEFAULT_LAT) + offsetLat; - let lng = ((ll && ll[1]) || DEFAULT_LNG) + offsetLng; + let lat = +((ll && ll[0]) || DEFAULT_LAT) + offsetLat; + let lng = +((ll && ll[1]) || DEFAULT_LNG) + offsetLng; network[pubkey] = Object.assign(network[pubkey] || {}, { online: true,