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