mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
commit
8f9cb83f9a
@ -180,7 +180,7 @@ namespace llarp
|
||||
TickPaths(m_router);
|
||||
if(m_BuildStats.attempts > 50)
|
||||
{
|
||||
if(m_BuildStats.SuccsessRatio() <= BuildStats::MinGoodRatio
|
||||
if(m_BuildStats.SuccessRatio() <= BuildStats::MinGoodRatio
|
||||
&& now - m_LastWarn > 5s)
|
||||
{
|
||||
LogWarn(Name(), " has a low path build success. ", m_BuildStats);
|
||||
|
@ -329,7 +329,7 @@ namespace llarp
|
||||
BuildStats::ToString() const
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << (SuccsessRatio() * 100.0) << " percent success ";
|
||||
ss << (SuccessRatio() * 100.0) << " percent success ";
|
||||
ss << "(success=" << success << " ";
|
||||
ss << "attempts=" << attempts << " ";
|
||||
ss << "timeouts=" << timeouts << " ";
|
||||
@ -338,7 +338,7 @@ namespace llarp
|
||||
}
|
||||
|
||||
double
|
||||
BuildStats::SuccsessRatio() const
|
||||
BuildStats::SuccessRatio() const
|
||||
{
|
||||
if(attempts)
|
||||
return double(success) / double(attempts);
|
||||
|
@ -53,7 +53,7 @@ namespace llarp
|
||||
ExtractStatus() const;
|
||||
|
||||
double
|
||||
SuccsessRatio() const;
|
||||
SuccessRatio() const;
|
||||
|
||||
std::string
|
||||
ToString() const;
|
||||
|
Loading…
Reference in New Issue
Block a user