unified return format
This commit is contained in:
parent
a115ff1299
commit
5f6caecee0
|
@ -445,14 +445,12 @@ int64_t convertTimePrecision(int64_t utime, int32_t fromPrecision, int32_t toPre
|
||||||
if (utime > INT64_MAX / 1000) {
|
if (utime > INT64_MAX / 1000) {
|
||||||
return INT64_MAX;
|
return INT64_MAX;
|
||||||
}
|
}
|
||||||
utime *= 1000;
|
return utime * 1000;
|
||||||
goto end_;
|
|
||||||
case TSDB_TIME_PRECISION_NANO:
|
case TSDB_TIME_PRECISION_NANO:
|
||||||
if (utime > INT64_MAX / 1000000) {
|
if (utime > INT64_MAX / 1000000) {
|
||||||
return INT64_MAX;
|
return INT64_MAX;
|
||||||
}
|
}
|
||||||
utime *= 1000000;
|
return utime * 1000000;
|
||||||
goto end_;
|
|
||||||
}
|
}
|
||||||
} // end from milli
|
} // end from milli
|
||||||
case TSDB_TIME_PRECISION_MICRO: {
|
case TSDB_TIME_PRECISION_MICRO: {
|
||||||
|
@ -465,8 +463,7 @@ int64_t convertTimePrecision(int64_t utime, int32_t fromPrecision, int32_t toPre
|
||||||
if (utime > INT64_MAX / 1000) {
|
if (utime > INT64_MAX / 1000) {
|
||||||
return INT64_MAX;
|
return INT64_MAX;
|
||||||
}
|
}
|
||||||
utime *= 1000;
|
return utime * 1000;
|
||||||
goto end_;
|
|
||||||
}
|
}
|
||||||
} // end from micro
|
} // end from micro
|
||||||
case TSDB_TIME_PRECISION_NANO: {
|
case TSDB_TIME_PRECISION_NANO: {
|
||||||
|
|
Loading…
Reference in New Issue