fix speeling mistack

pull/1138/head
Jason Rhinelander 4 years ago
parent 54236cde9d
commit f1aa27e616

@ -180,7 +180,7 @@ namespace llarp
TickPaths(m_router); TickPaths(m_router);
if(m_BuildStats.attempts > 50) if(m_BuildStats.attempts > 50)
{ {
if(m_BuildStats.SuccsessRatio() <= BuildStats::MinGoodRatio if(m_BuildStats.SuccessRatio() <= BuildStats::MinGoodRatio
&& now - m_LastWarn > 5s) && now - m_LastWarn > 5s)
{ {
LogWarn(Name(), " has a low path build success. ", m_BuildStats); LogWarn(Name(), " has a low path build success. ", m_BuildStats);

@ -329,7 +329,7 @@ namespace llarp
BuildStats::ToString() const BuildStats::ToString() const
{ {
std::stringstream ss; std::stringstream ss;
ss << (SuccsessRatio() * 100.0) << " percent success "; ss << (SuccessRatio() * 100.0) << " percent success ";
ss << "(success=" << success << " "; ss << "(success=" << success << " ";
ss << "attempts=" << attempts << " "; ss << "attempts=" << attempts << " ";
ss << "timeouts=" << timeouts << " "; ss << "timeouts=" << timeouts << " ";
@ -338,7 +338,7 @@ namespace llarp
} }
double double
BuildStats::SuccsessRatio() const BuildStats::SuccessRatio() const
{ {
if(attempts) if(attempts)
return double(success) / double(attempts); return double(success) / double(attempts);

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

Loading…
Cancel
Save