[TD-3117] <fix>: fix taosdemo coredump led by cntDelay.

This commit is contained in:
Shuduo Sang 2021-03-01 17:13:01 +08:00
parent 8f452a86dd
commit 2d07eef4c0
1 changed files with 1 additions and 1 deletions

View File

@ -4271,7 +4271,7 @@ void startMultiThreadInsertData(int threads, char* db_name, char* precision, SSu
}
cntDelay -= 1;
assert(cntDelay != 0);
if (cntDelay == 0) cntDelay = 1;
avgDelay = (double)totalDelay / cntDelay;
double end = getCurrentTime();