Merge pull request #2468 from taosdata/hotfix/sangshuduo/fix-taosdemo-error-divide-zero
fix divide-zero error in taosdemo
This commit is contained in:
commit
3472813bc2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue