fix:maxOS type
This commit is contained in:
parent
4aaa29bd4f
commit
fcfff59f86
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue