From bce072b5cba2953954a3b93000e0b0b4757cabe3 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 9 Dec 2022 00:13:04 +0800 Subject: [PATCH] opti:modify logic for telnet and json in schemaless --- source/client/src/clientSml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index c1500e7daf..b887fde00e 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -865,12 +865,12 @@ static int64_t smlGetTimeValue(const char *value, int32_t len, uint8_t fromPreci } if(unlikely(fromPrecision >= TSDB_TIME_PRECISION_HOURS)){ - fromPrecision = TSDB_TIME_PRECISION_MILLI; int64_t unit = smlToMilli[fromPrecision - TSDB_TIME_PRECISION_HOURS]; if(unit > INT64_MAX / tsInt64){ return -1; } tsInt64 *= unit; + fromPrecision = TSDB_TIME_PRECISION_MILLI; } return convertTimePrecision(tsInt64, fromPrecision, toPrecision);