aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram
diff options
context:
space:
mode:
authorelsol <elsol@yandex-team.ru>2022-02-10 16:50:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:56 +0300
commit0f22df667bcefaade4cc86ed8df31d6f87fa7098 (patch)
tree5d9785f9a46104e99770c12694689bba8a382d48 /library/cpp/histogram
parenta53448e7a898701b4411c68f0d438e703872f1a1 (diff)
downloadydb-0f22df667bcefaade4cc86ed8df31d6f87fa7098.tar.gz
Restoring authorship annotation for <elsol@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/histogram')
-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 41caac5ba6..117506f06c 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()) {