aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:30 +0300
commit4b839d0704ee9be1dabb0310a1f03af24963637b (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/datetime
parentf773626848a7c7456803654292e716b83d69cc12 (diff)
downloadydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/datetime')
-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 af805aa218..931f09eae1 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 {