From f1aa27e61601ae8474d52fa9a34011aeaea7a18b Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Tue, 25 Feb 2020 22:27:34 -0400 Subject: [PATCH] fix speeling mistack --- llarp/path/pathbuilder.cpp | 2 +- llarp/path/pathset.cpp | 4 ++-- llarp/path/pathset.hpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llarp/path/pathbuilder.cpp b/llarp/path/pathbuilder.cpp index 372f72bd6..8650b9381 100644 --- a/llarp/path/pathbuilder.cpp +++ b/llarp/path/pathbuilder.cpp @@ -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); diff --git a/llarp/path/pathset.cpp b/llarp/path/pathset.cpp index 60b406946..81d0c4534 100644 --- a/llarp/path/pathset.cpp +++ b/llarp/path/pathset.cpp @@ -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); diff --git a/llarp/path/pathset.hpp b/llarp/path/pathset.hpp index 76fbe15c9..cad5d504d 100644 --- a/llarp/path/pathset.hpp +++ b/llarp/path/pathset.hpp @@ -53,7 +53,7 @@ namespace llarp ExtractStatus() const; double - SuccsessRatio() const; + SuccessRatio() const; std::string ToString() const;