make profiling far stricter for path builds

pull/1622/head
Jeff Becker 3 years ago
parent 26e182955c
commit 955071ba5c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -50,17 +50,20 @@ namespace llarp
{ {
Profiling(); Profiling();
inline static const int profiling_chances = 4;
/// generic variant /// generic variant
bool bool
IsBad(const RouterID& r, uint64_t chances = 8) EXCLUDES(m_ProfilesMutex); IsBad(const RouterID& r, uint64_t chances = profiling_chances) EXCLUDES(m_ProfilesMutex);
/// check if this router should have paths built over it /// check if this router should have paths built over it
bool bool
IsBadForPath(const RouterID& r, uint64_t chances = 8) EXCLUDES(m_ProfilesMutex); IsBadForPath(const RouterID& r, uint64_t chances = profiling_chances) EXCLUDES(m_ProfilesMutex);
/// check if this router should be connected directly to /// check if this router should be connected directly to
bool bool
IsBadForConnect(const RouterID& r, uint64_t chances = 8) EXCLUDES(m_ProfilesMutex); IsBadForConnect(const RouterID& r, uint64_t chances = profiling_chances)
EXCLUDES(m_ProfilesMutex);
void void
MarkConnectTimeout(const RouterID& r) EXCLUDES(m_ProfilesMutex); MarkConnectTimeout(const RouterID& r) EXCLUDES(m_ProfilesMutex);

Loading…
Cancel
Save