fix:maxOS type

This commit is contained in:
facetosea 2022-12-08 11:13:57 +08:00
parent 4aaa29bd4f
commit fcfff59f86
1 changed files with 2 additions and 2 deletions

View File

@ -297,10 +297,10 @@ int32_t taosGetOsReleaseName(char *releaseName, int32_t maxLen) {
} }
if (major >= 20) { if (major >= 20) {
major -= 9; // macOS 11 and newer major -= 9; // macOS 11 and newer
sprintf(releaseName, "%u.%u", major, minor); sprintf(releaseName, "macOS %u.%u", major, minor);
} else { } else {
major -= 4; // macOS 10.1.1 and newer major -= 4; // macOS 10.1.1 and newer
sprintf(releaseName, "10.%d.%d", major, minor); sprintf(releaseName, "macOS 10.%d.%d", major, minor);
} }
return 0; return 0;