diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-13 12:53:05 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-06-13 12:53:05 -0700 |
commit | 97975402120d565dd211f9d470e7b192641712c5 (patch) | |
tree | 9f7a2db5ea4c9568d6b801d52b1fffd857565767 /node/Node.cpp | |
parent | ce2338c24a46558a2e0fdb7ebbcf2e6ce9c8b615 (diff) | |
parent | 3b188ba672559ff80264a8fab32699ebdbf928fe (diff) | |
download | infinitytier-97975402120d565dd211f9d470e7b192641712c5.tar.gz infinitytier-97975402120d565dd211f9d470e7b192641712c5.zip |
merge
Diffstat (limited to 'node/Node.cpp')
-rw-r--r-- | node/Node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Node.cpp b/node/Node.cpp index c9f38ad3..237da463 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -500,7 +500,7 @@ ZT_PeerList *Node::peers() const p->paths[p->pathCount].trustedPathId = RR->topology->getOutboundPathTrust((*path)->address()); p->paths[p->pathCount].expired = 0; p->paths[p->pathCount].preferred = ((*path) == bestp) ? 1 : 0; - p->paths[p->pathCount].latency = (*path)->latency(); + p->paths[p->pathCount].latency = (float)(*path)->latency(); p->paths[p->pathCount].packetDelayVariance = (*path)->packetDelayVariance(); p->paths[p->pathCount].throughputDisturbCoeff = (*path)->throughputDisturbanceCoefficient(); p->paths[p->pathCount].packetErrorRatio = (*path)->packetErrorRatio(); |