diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index c1500e7dafd7ac9d14056c445fb41ac325649a1d..b887fde00ea89a00b88203d5dcf979d819f69af3 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);