Fix CPU counts error on Windows (#31)
This commit is contained in:
1 parent
fb86c89de7
commit
532bca8867
5 files changed
+18
-20
No files matched your search
@@ -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