Correct bug with reporting macOS version

这个提交包含在:
Craig Warren
2023-01-04 14:03:58 +00:00
父节点 af8f4007b8
当前提交 83fd72cc2d

查看文件

@@ -126,7 +126,7 @@ def get_host_info():
hyperthreading = False
# OS version
if int(platform.mac_ver()[0].split('.')[1]) < 12:
if float(platform.mac_ver()[0]) < 12:
osversion = 'Mac OS X (' + platform.mac_ver()[0] + ')'
else:
osversion = 'macOS (' + platform.mac_ver()[0] + ')'