Skip to content

Commit

Permalink
Merge pull request #623 from ChihChienKung/master
Browse files Browse the repository at this point in the history
at.NTS never been found
  • Loading branch information
amark committed Oct 9, 2018
2 parents 48a8f80 + 87729e0 commit 5be08a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nts.js
Expand Up @@ -37,8 +37,8 @@
NTS.end = Gun.state();
Gun.obj.del(ask, ack);
NTS.latency = (NTS.end - NTS.start)/2;
if(!at.NTS){ return }
NTS.calc = NTS.latency + at.NTS;
if(!at.nts && !at.NTS){ return }
NTS.calc = NTS.latency + (at.NTS || at.nts);
Gun.state.drift -= (NTS.end - NTS.calc)/2;
setTimeout(ping, 1000);
}
Expand Down

0 comments on commit 5be08a0

Please sign in to comment.