aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinnokentii <innokentii@yandex-team.com>2023-10-10 10:39:14 +0300
committerinnokentii <innokentii@yandex-team.com>2023-10-10 11:01:29 +0300
commit3896b7591b5f3231ceb4bfe69cf9863b237d8b78 (patch)
tree21cacba8365a774d6aa9ded87b49b3b7acfe8e52
parentbab81f7ef1e2af04483575419d9eb3b93d332b54 (diff)
downloadydb-3896b7591b5f3231ceb4bfe69cf9863b237d8b78.tar.gz
Fix incorrect time in LastAccountingReport
fix incorrect time in LastAccountingReport
-rw-r--r--ydb/core/quoter/kesus_quoter_proxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/quoter/kesus_quoter_proxy.cpp b/ydb/core/quoter/kesus_quoter_proxy.cpp
index 4de0de9d9aa..887050f1594 100644
--- a/ydb/core/quoter/kesus_quoter_proxy.cpp
+++ b/ydb/core/quoter/kesus_quoter_proxy.cpp
@@ -1026,7 +1026,7 @@ private:
// in case they have the same `ReportPeriod`
Y_ASSERT(res.AccountingReportPeriod < TDuration::Max());
ui64 periodUs = res.AccountingReportPeriod.MicroSeconds();
- res.LastAccountingReport = TInstant::MicroSeconds(res.AccountingReportPeriod.MicroSeconds() / periodUs * periodUs);
+ res.LastAccountingReport = TInstant::MicroSeconds(now.MicroSeconds() / periodUs * periodUs);
}
}