Merge pull request #5306 from taosdata/hotfix/sangshuduo/TD-3117-fix-taosdemo-cntdelay-coredump
[TD-3117] <fix>: fix taosdemo coredump led by cntDelay.
This commit is contained in:
commit
5c7a10f4cd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue