[TD-3117] <fix>: fix taosdemo coredump led by cntDelay.
This commit is contained in:
parent
8f452a86dd
commit
2d07eef4c0
|
@ -4271,7 +4271,7 @@ void startMultiThreadInsertData(int threads, char* db_name, char* precision, SSu
|
||||||
}
|
}
|
||||||
cntDelay -= 1;
|
cntDelay -= 1;
|
||||||
|
|
||||||
assert(cntDelay != 0);
|
if (cntDelay == 0) cntDelay = 1;
|
||||||
avgDelay = (double)totalDelay / cntDelay;
|
avgDelay = (double)totalDelay / cntDelay;
|
||||||
|
|
||||||
double end = getCurrentTime();
|
double end = getCurrentTime();
|
||||||
|
|
Loading…
Reference in New Issue