Fix CPU counts error on Windows (#31)

This commit is contained in:
UUBulb authored and GitHub committed 2024-06-25 22:10:32 +08:00
1 parent fb86c89de7
commit 532bca8867
5 files changed
+18 -20

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ func VersionCheck() bool {
}
re := regexp.MustCompile(`Build (\d+(\.\d+)?)`)
match := re.FindStringSubmatch(hi.PlatformVersion)
match := re.FindStringSubmatch(hi.KernelVersion)
if len(match) > 1 {
versionStr := match[1]