aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/parser.rl6
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:29 +0300
commitf773626848a7c7456803654292e716b83d69cc12 (patch)
treedb052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/datetime/parser.rl6
parentf43ab775d197d300eb67bd4497632b909cd7c2a5 (diff)
downloadydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/datetime/parser.rl6')
-rw-r--r--util/datetime/parser.rl66
1 files changed, 3 insertions, 3 deletions
diff --git a/util/datetime/parser.rl6 b/util/datetime/parser.rl6
index 931f09eae1..af805aa218 100644
--- a/util/datetime/parser.rl6
+++ b/util/datetime/parser.rl6
@@ -6,7 +6,7 @@
#include <numeric>
#include <util/datetime/parser.h>
-#include <util/generic/ymath.h>
+#include <util/generic/ymath.h>
%%{
@@ -775,8 +775,8 @@ bool TDurationParser::ParsePart(const char* input, size_t len) {
static inline ui64 DecPower(ui64 part, i32 power) {
if (power >= 0)
- return part * Power(10, power);
- return part / Power(10, -power);
+ return part * Power(10, power);
+ return part / Power(10, -power);
}
TDuration TDurationParser::GetResult(TDuration defaultValue) const {