Smaller smoothing window in throttler.

This commit is contained in:
Nikolai Kochetov 2021-10-14 21:20:19 +03:00
parent 077aba4a97
commit e9cab3aaad

View File

@ -23,7 +23,7 @@ static constexpr auto NS = 1000000000UL;
/// Tracking window. Actually the size is not really important. We just want to avoid
/// throttles when there are no actions for a long period time.
static const double window_ns = 7UL * NS;
static const double window_ns = 1UL * NS;
void Throttler::add(size_t amount)
{