aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinnokentii <innokentii@yandex-team.com>2023-10-12 11:44:35 +0300
committerinnokentii <innokentii@yandex-team.com>2023-10-12 12:16:09 +0300
commit385d8b0c79247b98a4c69ed43cbd4198bd5432a9 (patch)
treeaaa7539479ce1a91b9eb932399c808d9210ead87
parenta1d12a9ecd63b4c4584c5c81f6d5e242f5b13754 (diff)
downloadydb-385d8b0c79247b98a4c69ed43cbd4198bd5432a9.tar.gz
Fix cyclic buffer size
fix cyclic buffer size
-rw-r--r--ydb/core/quoter/kesus_quoter_proxy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/core/quoter/kesus_quoter_proxy.cpp b/ydb/core/quoter/kesus_quoter_proxy.cpp
index 2d80fed450a..74c359d517d 100644
--- a/ydb/core/quoter/kesus_quoter_proxy.cpp
+++ b/ydb/core/quoter/kesus_quoter_proxy.cpp
@@ -210,7 +210,8 @@ class TKesusQuoterProxy : public TActorBootstrapped<TKesusQuoterProxy> {
if (Props.GetAccountingConfig().GetEnabled()) {
AccountingReportPeriod = TDuration::MilliSeconds(Props.GetAccountingConfig().GetReportPeriodMs());
- THolder<TTimeSeriesVec<double>> history(new TTimeSeriesVec<double>(Props.GetAccountingConfig().GetCollectPeriodSec()));
+ const ui64 intervalsInSec = 100; // as far as default resolution in TTimeSerisVec is 10'000
+ THolder<TTimeSeriesVec<double>> history(new TTimeSeriesVec<double>(Props.GetAccountingConfig().GetCollectPeriodSec() * intervalsInSec));
if (History) {
history->Add(*History.Get());
}