Merge pull request #1138 from jagerman/sucksess

fix speeling mistack
pull/1139/head
Jason Rhinelander 5 years ago committed by GitHub
commit 8f9cb83f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save