mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
change need_reset_counters method
This commit is contained in:
parent
7b88c956c8
commit
8fbd46f958
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user