diff --git a/src/kit/shell/src/shellCheck.c b/src/kit/shell/src/shellCheck.c index 3ff2582407e4eac8624dae573440b36a57cc1409..b88244ea018291fbdc98165a8665949f618e3291 100644 --- a/src/kit/shell/src/shellCheck.c +++ b/src/kit/shell/src/shellCheck.c @@ -196,4 +196,4 @@ void shellCheck(TAOS *con, SShellArguments *args) { int64_t end = taosGetTimestampMs(); fprintf(stdout, "total %d tables checked, failed:%d, time spent %.2f seconds\n", checkedNum, errorNum, (end - start) / 1000.0); -} \ No newline at end of file +} diff --git a/src/kit/shell/src/shellEngine.c b/src/kit/shell/src/shellEngine.c index 66bb93a884a37d6f8888e5bd5435c5f2b9ad6a47..0eb1248fad8fe78857b255d8861ea825ab501933 100644 --- a/src/kit/shell/src/shellEngine.c +++ b/src/kit/shell/src/shellEngine.c @@ -417,7 +417,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;