change need_reset_counters method

This commit is contained in:
liyang830 2021-11-17 15:44:03 +08:00
parent 7b88c956c8
commit 8fbd46f958

View File

@ -67,7 +67,7 @@ struct EnabledQuota::Impl
{
/// We reset counters only if the interval's end has been calculated before.
/// If it hasn't we just calculate the interval's end for the first time and don't reset counters yet.
need_reset_counters = true;
need_reset_counters = (end_loaded.count() != 0);
break;
}
end = std::chrono::system_clock::time_point{end_loaded};