aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorelsol <elsol@yandex-team.ru>2022-02-10 16:50:57 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:57 +0300
commit9cc851b34f89d2b8ba19d91e816bddf9c17a8f2c (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp
parent0f22df667bcefaade4cc86ed8df31d6f87fa7098 (diff)
downloadydb-9cc851b34f89d2b8ba19d91e816bddf9c17a8f2c.tar.gz
Restoring authorship annotation for <elsol@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/histogram/adaptive/multi_histogram.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/histogram/adaptive/multi_histogram.h b/library/cpp/histogram/adaptive/multi_histogram.h
index 117506f06c..41caac5ba6 100644
--- a/library/cpp/histogram/adaptive/multi_histogram.h
+++ b/library/cpp/histogram/adaptive/multi_histogram.h
@@ -78,14 +78,14 @@ namespace NKiwiAggr {
return IHistogramPtr();
}
- double GetMaxHistoSum() const {
- double sum = 0.0;
- for (THistogramsMap::const_iterator it = Histograms.begin(); it != Histograms.end(); ++it) {
+ double GetMaxHistoSum() const {
+ double sum = 0.0;
+ for (THistogramsMap::const_iterator it = Histograms.begin(); it != Histograms.end(); ++it) {
sum = std::max(sum, it->second->GetSum());
- }
- return sum;
- }
-
+ }
+ return sum;
+ }
+
bool Empty() {
for (THistogramsMap::iterator it = Histograms.begin(); it != Histograms.end(); ++it) {
if (!it->second->Empty()) {