mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Fix code style
This commit is contained in:
parent
63b36e8569
commit
2850f131e2
1 changed files with 4 additions and 4 deletions
|
@ -488,10 +488,10 @@ int32_t Bond::generateQoSPacket(int pathIdx, int64_t now, char* qosBuffer)
|
||||||
|
|
||||||
bool Bond::assignFlowToBondedPath(SharedPtr<Flow>& flow, int64_t now)
|
bool Bond::assignFlowToBondedPath(SharedPtr<Flow>& flow, int64_t now)
|
||||||
{
|
{
|
||||||
if (! _numBondedPaths) {
|
if (! _numBondedPaths) {
|
||||||
log("unable to assign flow %x (bond has no links)\n", flow->id);
|
log("unable to assign flow %x (bond has no links)\n", flow->id);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
unsigned int idx = ZT_MAX_PEER_NETWORK_PATHS;
|
unsigned int idx = ZT_MAX_PEER_NETWORK_PATHS;
|
||||||
if (_policy == ZT_BOND_POLICY_BALANCE_XOR) {
|
if (_policy == ZT_BOND_POLICY_BALANCE_XOR) {
|
||||||
idx = abs((int)(flow->id % (_numBondedPaths)));
|
idx = abs((int)(flow->id % (_numBondedPaths)));
|
||||||
|
|
Loading…
Add table
Reference in a new issue