aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/mon/analytics/util.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/lwtrace/mon/analytics/util.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lwtrace/mon/analytics/util.h')
-rw-r--r--library/cpp/lwtrace/mon/analytics/util.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/lwtrace/mon/analytics/util.h b/library/cpp/lwtrace/mon/analytics/util.h
index e07d06cc43..1864a3524e 100644
--- a/library/cpp/lwtrace/mon/analytics/util.h
+++ b/library/cpp/lwtrace/mon/analytics/util.h
@@ -1,6 +1,6 @@
#pragma once
-#include "data.h"
+#include "data.h"
#include <util/generic/algorithm.h>
#include <util/generic/hash_set.h>
#include <util/string/vector.h>
@@ -60,9 +60,9 @@ inline double MinValue(const TString& nameAndOpts, const TTable& table)
if (stack) {
return 0.0;
} else {
- auto zero = 0.0;
-
- return AccumulateIfExist(name, table, 1.0 / zero /*+inf*/, [] (double x, double y) {
+ auto zero = 0.0;
+
+ return AccumulateIfExist(name, table, 1.0 / zero /*+inf*/, [] (double x, double y) {
return Min(x, y);
});
}
@@ -79,9 +79,9 @@ inline double MaxValue(const TString& nameAndOpts, const TTable& table)
return x + y;
});
} else {
- auto zero = 0.0;
-
- return AccumulateIfExist(name, table, -1.0 / zero /*-inf*/, [] (double x, double y) {
+ auto zero = 0.0;
+
+ return AccumulateIfExist(name, table, -1.0 / zero /*-inf*/, [] (double x, double y) {
return Max(x, y);
});
}