aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/mon/analytics
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/lwtrace/mon/analytics
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
downloadydb-bd085aee9b4f7a0bee302ce687964ffb7098f986.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/lwtrace/mon/analytics')
-rw-r--r--library/cpp/lwtrace/mon/analytics/json_output.h4
-rw-r--r--library/cpp/lwtrace/mon/analytics/transform.h4
-rw-r--r--library/cpp/lwtrace/mon/analytics/util.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/lwtrace/mon/analytics/json_output.h b/library/cpp/lwtrace/mon/analytics/json_output.h
index 1d867c3d05..189f9802d3 100644
--- a/library/cpp/lwtrace/mon/analytics/json_output.h
+++ b/library/cpp/lwtrace/mon/analytics/json_output.h
@@ -19,13 +19,13 @@ inline TString ToJsonFlot(const TTable& in, const TString& xno, const TVector<TS
TString xn;
THashSet<TString> xopts;
ParseNameAndOpts(xno, xn, xopts);
- bool xstack = xopts.contains("stack");
+ bool xstack = xopts.contains("stack");
for (const TString& yno : ynos) {
TString yn;
THashSet<TString> yopts;
ParseNameAndOpts(yno, yn, yopts);
- bool ystackOpt = yopts.contains("stack");
+ bool ystackOpt = yopts.contains("stack");
ss << (first? "": ",\n ") << "{ " << opts << (opts? ", ": "") << "\"label\": \"" << yn << "\", \"data\": [ ";
bool first2 = true;
diff --git a/library/cpp/lwtrace/mon/analytics/transform.h b/library/cpp/lwtrace/mon/analytics/transform.h
index 32a175a63e..f7dc9adb5b 100644
--- a/library/cpp/lwtrace/mon/analytics/transform.h
+++ b/library/cpp/lwtrace/mon/analytics/transform.h
@@ -98,12 +98,12 @@ inline TTable HistogramAll(const TTable& in, const TString& xn, double x1, doubl
if (i >= 0 && i < buckets) {
out[i][yn + "_cnt"] = out[i].GetOrDefault(yn + "_cnt") + 1;
out[i][yn + "_sum"] = out[i].GetOrDefault(yn + "_sum") + y;
- if (out[i].contains(yn + "_min")) {
+ if (out[i].contains(yn + "_min")) {
out[i][yn + "_min"] = Min(y, out[i].GetOrDefault(yn + "_min"));
} else {
out[i][yn + "_min"] = y;
}
- if (out[i].contains(yn + "_max")) {
+ if (out[i].contains(yn + "_max")) {
out[i][yn + "_max"] = Max(y, out[i].GetOrDefault(yn + "_max"));
} else {
out[i][yn + "_max"] = y;
diff --git a/library/cpp/lwtrace/mon/analytics/util.h b/library/cpp/lwtrace/mon/analytics/util.h
index 777694781c..e07d06cc43 100644
--- a/library/cpp/lwtrace/mon/analytics/util.h
+++ b/library/cpp/lwtrace/mon/analytics/util.h
@@ -56,7 +56,7 @@ inline double MinValue(const TString& nameAndOpts, const TTable& table)
TString name;
THashSet<TString> opts;
ParseNameAndOpts(nameAndOpts, name, opts);
- bool stack = opts.contains("stack");
+ bool stack = opts.contains("stack");
if (stack) {
return 0.0;
} else {
@@ -73,7 +73,7 @@ inline double MaxValue(const TString& nameAndOpts, const TTable& table)
TString name;
THashSet<TString> opts;
ParseNameAndOpts(nameAndOpts, name, opts);
- bool stack = opts.contains("stack");
+ bool stack = opts.contains("stack");
if (stack) {
return AccumulateIfExist(name, table, 0.0, [] (double x, double y) {
return x + y;