提交 900f046d 编写于 作者: S Shuduo Sang

fix divide-zero error in taosdemo

[TD-773]
上级 99c04425
......@@ -547,7 +547,10 @@ int main(int argc, char *argv[]) {
threads = ntables;
a = 1;
}
int b = ntables % threads;
int b = 0;
if (threads != 0)
b = ntables % threads;
int last = 0;
for (int i = 0; i < threads; i++) {
info *t_info = infos + i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册