[td-3331]<fix>: print timestamp format error.

This commit is contained in:
Haojun Liao 2021-03-16 16:17:42 +08:00
parent c5d19cbf40
commit 6cadb9dfa1
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ static char* formatTimestamp(char* buf, int64_t val, int precision) {
#ifdef WINDOWS
if (tt < 0) tt = 0;
#endif
if (tt < 0 && ms != 0) {
if (tt <= 0 && ms < 0) {
tt--;
if (precision == TSDB_TIME_PRECISION_MICRO) {
ms += 1000000;