Fix: amd64 macOS Ventura process name match
This commit is contained in:
parent
aa87a74727
commit
9742677725
1 changed files with 2 additions and 2 deletions
|
@ -18,11 +18,11 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var structSize = func() int {
|
var structSize = func() int {
|
||||||
value, _ := syscall.Sysctl("kern.osproductversion")
|
value, _ := syscall.Sysctl("kern.osrelease")
|
||||||
major, _, _ := strings.Cut(value, ".")
|
major, _, _ := strings.Cut(value, ".")
|
||||||
n, _ := strconv.ParseInt(major, 10, 64)
|
n, _ := strconv.ParseInt(major, 10, 64)
|
||||||
switch true {
|
switch true {
|
||||||
case n >= 13:
|
case n >= 22:
|
||||||
return 408
|
return 408
|
||||||
default:
|
default:
|
||||||
// from darwin-xnu/bsd/netinet/in_pcblist.c:get_pcblist_n
|
// from darwin-xnu/bsd/netinet/in_pcblist.c:get_pcblist_n
|
||||||
|
|
Loading…
Reference in a new issue