Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: offset adding
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-calavera authored and mvines committed Oct 25, 2019
1 parent 2d65298 commit a276ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a276ca7

Please sign in to comment.