From 8fbd46f95881d5c9b9ca45a47efcab1e163b4e47 Mon Sep 17 00:00:00 2001 From: liyang830 Date: Wed, 17 Nov 2021 15:44:03 +0800 Subject: [PATCH] change need_reset_counters method --- src/Access/EnabledQuota.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Access/EnabledQuota.cpp b/src/Access/EnabledQuota.cpp index cf78bfd0475..76708a92764 100644 --- a/src/Access/EnabledQuota.cpp +++ b/src/Access/EnabledQuota.cpp @@ -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};