fix speeling mistack

This commit is contained in:
Jason Rhinelander 2020-02-25 22:27:34 -04:00
parent 54236cde9d
commit f1aa27e616
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);

View File

@ -53,7 +53,7 @@ namespace llarp
ExtractStatus() const;
double
SuccsessRatio() const;
SuccessRatio() const;
std::string
ToString() const;