未验证 提交 5c7a10f4 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Merge pull request #5306 from taosdata/hotfix/sangshuduo/TD-3117-fix-taosdemo-cntdelay-coredump

[TD-3117] <fix>: fix taosdemo coredump led by cntDelay.
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册