aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit7fe839092527589b38f014d854c51565b3c1adfa (patch)
tree309e97022d3530044b712b8f71318c78faf7856e /library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp')
-rw-r--r--library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp b/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
index 7e81357dbd..0cdecebcfa 100644
--- a/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
+++ b/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp
@@ -22,7 +22,7 @@
namespace NMonitoring {
namespace {
- constexpr ui32 MAX_LABEL_VALUE_LEN = 256;
+ constexpr ui32 MAX_LABEL_VALUE_LEN = 256;
using TLabelsMap = THashMap<TString, TString>;
@@ -225,7 +225,7 @@ namespace NMonitoring {
SkipSpaces();
TStringBuf keyword = ReadToken();
- if (keyword == TStringBuf("TYPE")) {
+ if (keyword == TStringBuf("TYPE")) {
SkipSpaces();
TStringBuf nextName = ReadTokenAsMetricName();
@@ -561,11 +561,11 @@ namespace NMonitoring {
}
double ParseGoDouble(TStringBuf str) {
- if (str == TStringBuf("+Inf")) {
+ if (str == TStringBuf("+Inf")) {
return std::numeric_limits<double>::infinity();
- } else if (str == TStringBuf("-Inf")) {
+ } else if (str == TStringBuf("-Inf")) {
return -std::numeric_limits<double>::infinity();
- } else if (str == TStringBuf("NaN")) {
+ } else if (str == TStringBuf("NaN")) {
return NAN;
}