mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Style fix
This commit is contained in:
parent
acd1f24a3f
commit
66236e91a2
2 changed files with 9 additions and 12 deletions
|
@ -12,11 +12,12 @@
|
||||||
/****/
|
/****/
|
||||||
|
|
||||||
#include "Bond.hpp"
|
#include "Bond.hpp"
|
||||||
|
|
||||||
#include "Switch.hpp"
|
#include "Switch.hpp"
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <string>
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace ZeroTier {
|
namespace ZeroTier {
|
||||||
|
|
||||||
|
@ -1534,11 +1535,7 @@ void Bond::processActiveBackupTasks(void* tPtr, int64_t now)
|
||||||
if ((failoverScoreDifference > 0) && (failoverScoreDifference > thresholdQuantity)) {
|
if ((failoverScoreDifference > 0) && (failoverScoreDifference > thresholdQuantity)) {
|
||||||
SharedPtr<Path> oldPath = _paths[_abPathIdx].p;
|
SharedPtr<Path> oldPath = _paths[_abPathIdx].p;
|
||||||
dequeueNextActiveBackupPath(now);
|
dequeueNextActiveBackupPath(now);
|
||||||
log("switch from %s (score: %d) to better link %s (score: %d) (select mode: optimize)",
|
log("switch from %s (score: %d) to better link %s (score: %d) (select mode: optimize)", pathToStr(oldPath).c_str(), prevFScore, pathToStr(_paths[_abPathIdx].p).c_str(), newFScore);
|
||||||
pathToStr(oldPath).c_str(),
|
|
||||||
prevFScore,
|
|
||||||
pathToStr(_paths[_abPathIdx].p).c_str(),
|
|
||||||
newFScore);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue