[TD-3472] <fix>: fix query times determination miss. (#5576)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
a4b3e5a78a
commit
1b998f06a4
|
@ -5428,7 +5428,10 @@ static void *superQueryProcess(void *sarg) {
|
|||
|
||||
int64_t st = 0;
|
||||
int64_t et = 0;
|
||||
while (1) {
|
||||
|
||||
int queryTimes = g_args.query_times;
|
||||
|
||||
while(queryTimes --) {
|
||||
if (g_queryInfo.superQueryInfo.rate && (et - st) <
|
||||
(int64_t)g_queryInfo.superQueryInfo.rate*1000) {
|
||||
taosMsleep(g_queryInfo.superQueryInfo.rate*1000 - (et - st)); // ms
|
||||
|
|
Loading…
Reference in New Issue