#ifdef'd out multipath/QoS statistics buffers allocations for ZT_PROTOCOL_VERSION<10

This commit is contained in:
Joseph Henry 2019-03-01 13:28:00 -08:00
parent 59a0a25f35
commit 270debb3fc
3 changed files with 8 additions and 2 deletions

View file

@ -78,7 +78,9 @@ Peer::Peer(const RuntimeEnvironment *renv,const Identity &myIdentity,const Ident
Utils::getSecureRandom(&_freeRandomByte, 1);
if (!myIdentity.agree(peerIdentity,_key,ZT_PEER_SECRET_KEY_LENGTH))
throw ZT_EXCEPTION_INVALID_ARGUMENT;
#if ZT_PROTO_VERSION >= 10
_pathChoiceHist = new RingBuffer<int>(ZT_MULTIPATH_PROPORTION_WIN_SZ);
#endif
}
void Peer::received(