Fix CPU counts error on Windows (#31)

This commit is contained in:
UUBulb
2024-06-25 22:10:32 +08:00
committed by GitHub
parent fb86c89de7
commit 532bca8867
5 changed files with 18 additions and 20 deletions
+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]