From c96b81206d2ee03d6f3ed34813fe95b2f91b8b9c Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 21 Apr 2015 15:59:40 -0400 Subject: [PATCH] changed some profiling parameters --- Profiling.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Profiling.cpp b/Profiling.cpp index bac162e0..839406c2 100644 --- a/Profiling.cpp +++ b/Profiling.cpp @@ -140,9 +140,9 @@ namespace data { auto total = m_NumTunnelsAgreed + m_NumTunnelsDeclined; if (elapsedTime < 300) // if less than 5 minutes - return m_NumTunnelsNonReplied > 10*total; + return m_NumTunnelsNonReplied > 5*(total + 1); else - return !total && m_NumTunnelsNonReplied > 20; + return !total && m_NumTunnelsNonReplied*15 > elapsedTime; } bool RouterProfile::IsBad () const @@ -185,4 +185,4 @@ namespace data LogPrint (eLogInfo, num, " obsolete profiles deleted"); } } -} \ No newline at end of file +}