提交 0d7e8302 编写于 作者: Z zhaoyanggh

fix win compile

上级 d15d8d03
...@@ -2381,7 +2381,7 @@ int32_t generateSmlJsonTags(cJSON *tagsList, SSuperTable *stbInfo, ...@@ -2381,7 +2381,7 @@ int32_t generateSmlJsonTags(cJSON *tagsList, SSuperTable *stbInfo,
cJSON_AddStringToObject(tag, "type", "int"); cJSON_AddStringToObject(tag, "type", "int");
break; break;
case TSDB_DATA_TYPE_BIGINT: case TSDB_DATA_TYPE_BIGINT:
cJSON_AddNumberToObject(tag, "value", rand_bigint()); cJSON_AddNumberToObject(tag, "value", (double)rand_bigint());
cJSON_AddStringToObject(tag, "type", "bigint"); cJSON_AddStringToObject(tag, "type", "bigint");
break; break;
case TSDB_DATA_TYPE_FLOAT: case TSDB_DATA_TYPE_FLOAT:
...@@ -2432,7 +2432,7 @@ int32_t generateSmlJsonCols(cJSON *array, cJSON *tag, SSuperTable *stbInfo, ...@@ -2432,7 +2432,7 @@ int32_t generateSmlJsonCols(cJSON *array, cJSON *tag, SSuperTable *stbInfo,
threadInfo *pThreadInfo, int64_t timestamp) { threadInfo *pThreadInfo, int64_t timestamp) {
cJSON *record = cJSON_CreateObject(); cJSON *record = cJSON_CreateObject();
cJSON *ts = cJSON_CreateObject(); cJSON *ts = cJSON_CreateObject();
cJSON_AddNumberToObject(ts, "value", timestamp); cJSON_AddNumberToObject(ts, "value", (double)timestamp);
if (pThreadInfo->time_precision == TSDB_TIME_PRECISION_MILLI) { if (pThreadInfo->time_precision == TSDB_TIME_PRECISION_MILLI) {
cJSON_AddStringToObject(ts, "type", "ms"); cJSON_AddStringToObject(ts, "type", "ms");
} else if (pThreadInfo->time_precision == TSDB_TIME_PRECISION_MICRO) { } else if (pThreadInfo->time_precision == TSDB_TIME_PRECISION_MICRO) {
...@@ -2463,7 +2463,7 @@ int32_t generateSmlJsonCols(cJSON *array, cJSON *tag, SSuperTable *stbInfo, ...@@ -2463,7 +2463,7 @@ int32_t generateSmlJsonCols(cJSON *array, cJSON *tag, SSuperTable *stbInfo,
cJSON_AddStringToObject(value, "type", "int"); cJSON_AddStringToObject(value, "type", "int");
break; break;
case TSDB_DATA_TYPE_BIGINT: case TSDB_DATA_TYPE_BIGINT:
cJSON_AddNumberToObject(value, "value", rand_bigint()); cJSON_AddNumberToObject(value, "value", (double)rand_bigint());
cJSON_AddStringToObject(value, "type", "bigint"); cJSON_AddStringToObject(value, "type", "bigint");
break; break;
case TSDB_DATA_TYPE_FLOAT: case TSDB_DATA_TYPE_FLOAT:
......
...@@ -3274,7 +3274,7 @@ int startMultiThreadInsertData(int threads, char *db_name, char *precision, ...@@ -3274,7 +3274,7 @@ int startMultiThreadInsertData(int threads, char *db_name, char *precision,
uint64_t totalDelay = 0; uint64_t totalDelay = 0;
uint64_t maxDelay = 0; uint64_t maxDelay = 0;
uint64_t minDelay = UINT64_MAX; uint64_t minDelay = UINT64_MAX;
uint64_t cntDelay = 1; uint64_t cntDelay = 0;
double avgDelay = 0; double avgDelay = 0;
for (int i = 0; i < threads; i++) { for (int i = 0; i < threads; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册