diff --git a/src/kit/shell/src/shellDarwin.c b/src/kit/shell/src/shellDarwin.c index 76d36fe861795ad2f02ea8bb1b50337c2d6d86d8..b624f5ee68535026580af25aa962a8f6a79f963e 100644 --- a/src/kit/shell/src/shellDarwin.c +++ b/src/kit/shell/src/shellDarwin.c @@ -156,7 +156,7 @@ void shellParseArgument(int argc, char *argv[], struct arguments *arguments) { // For time zone else if (strcmp(argv[i], "-T") == 0) { if (i < argc - 1) { - arguments->threadNum = argv[++i]; + arguments->threadNum = atoi(argv[++i]); } else { fprintf(stderr, "option -T requires an argument\n"); exit(EXIT_FAILURE); diff --git a/src/os/darwin/src/tdarwin.c b/src/os/darwin/src/tdarwin.c index 840dee5a11b7ae14a8c60c6fc861cd6c75c49517..af3b1bd8a50d9f52d5f81f4dd42f483c510866c9 100644 --- a/src/os/darwin/src/tdarwin.c +++ b/src/os/darwin/src/tdarwin.c @@ -38,6 +38,7 @@ char tsDirectory[TSDB_FILENAME_LEN] = "/var/lib/taos"; char dataDir[TSDB_FILENAME_LEN] = "/var/lib/taos"; char logDir[TSDB_FILENAME_LEN] = "~/TDengineLog"; char scriptDir[TSDB_FILENAME_LEN] = "/etc/taos"; +char osName[] = "Darwin"; int64_t str2int64(char *str) { char *endptr = NULL;