summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2019-06-13 10:27:54 -0700
committerGrant Limberg <[email protected]>2019-06-13 10:28:09 -0700
commit47d29ddcaf677a5376f54e6901bcdc38e499b16d (patch)
tree41a840d935dc2a90b063ac619008bcc085e67c75 /node/Node.cpp
parentf411eb1651bbfaa276eab02cf368e9fcb3905a15 (diff)
Compiler warning cleanup
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp2
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();