diff options
author | malovb <malovb@yandex-team.ru> | 2022-02-10 16:50:58 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:58 +0300 |
commit | 921ed84fe484a13543cd6c130db2f0c34e16981e (patch) | |
tree | be467cb6913ac5f2a5a2951e5b8152e552ef0b05 | |
parent | ff3ab81bdf23691e209cd5bd15515e003a733ddb (diff) | |
download | ydb-921ed84fe484a13543cd6c130db2f0c34e16981e.tar.gz |
Restoring authorship annotation for <malovb@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | library/cpp/monlib/metrics/summary_collector.h | 12 | ||||
-rw-r--r-- | library/cpp/monlib/service/pages/registry_mon_page.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/monlib/metrics/summary_collector.h b/library/cpp/monlib/metrics/summary_collector.h index acba0fddf9..4cd1afd650 100644 --- a/library/cpp/monlib/metrics/summary_collector.h +++ b/library/cpp/monlib/metrics/summary_collector.h @@ -15,8 +15,8 @@ namespace NMonitoring { virtual void Collect(double value) = 0; virtual ISummaryDoubleSnapshotPtr Snapshot() const = 0; - - virtual size_t SizeBytes() const = 0; + + virtual size_t SizeBytes() const = 0; }; using ISummaryDoubleCollectorPtr = THolder<ISummaryDoubleCollector>; @@ -50,10 +50,10 @@ namespace NMonitoring { Count_.load(std::memory_order_relaxed)); } - size_t SizeBytes() const override { - return sizeof(*this); - } - + size_t SizeBytes() const override { + return sizeof(*this); + } + private: std::atomic<double> Sum_; std::atomic<double> Min_; diff --git a/library/cpp/monlib/service/pages/registry_mon_page.cpp b/library/cpp/monlib/service/pages/registry_mon_page.cpp index c59e50f622..a457cb02b7 100644 --- a/library/cpp/monlib/service/pages/registry_mon_page.cpp +++ b/library/cpp/monlib/service/pages/registry_mon_page.cpp @@ -40,7 +40,7 @@ namespace NMonitoring { void TMetricRegistryPage::OutputText(IOutputStream& out, NMonitoring::IMonHttpRequest&) { IMetricEncoderPtr encoder = NMonitoring::EncoderText(&out); - RegistryRawPtr_->Accept(TInstant::Zero(), encoder.Get()); + RegistryRawPtr_->Accept(TInstant::Zero(), encoder.Get()); } } |