Merge pull request #1138 from jagerman/sucksess

fix speeling mistack
This commit is contained in:
Jason Rhinelander 2020-02-25 22:29:47 -04:00 committed by GitHub
commit 8f9cb83f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;