From fe09146609a727d537d79f6b3f336ee3edfda3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= Date: Fri, 20 Oct 2017 14:51:35 -0400 Subject: [PATCH] rate_limiter: typo fix, 'Perdiod'->'Period' --- include/opendht/rate_limiter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opendht/rate_limiter.h b/include/opendht/rate_limiter.h index 061b36a5..17ba4bbe 100644 --- a/include/opendht/rate_limiter.h +++ b/include/opendht/rate_limiter.h @@ -23,12 +23,12 @@ namespace dht { -template +template class RateLimiter { public: /** Clear outdated records and return current quota usage */ size_t maintain(const time_point& now) { - auto limit = now - std::chrono::seconds(Perdiod); + auto limit = now - std::chrono::seconds(Period); while (not records.empty() and records.front() < limit) records.pop(); return records.size();