Fix CPU counts error on Windows (#31)
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user