mirror of
https://github.com/status-im/consul.git
synced 2025-01-19 18:19:53 +00:00
95c027a3ea
https://github.com/shirou/gopsutil/pull/895 is merged and fixes our problem. Time to update. Since there is no new version just yet, updating to the sha.
16 lines
280 B
Go
16 lines
280 B
Go
// +build linux freebsd openbsd darwin solaris
|
|
|
|
package host
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func kernelArch() (string, error) {
|
|
var utsname unix.Utsname
|
|
err := unix.Uname(&utsname)
|
|
return string(utsname.Machine[:bytes.IndexByte(utsname.Machine[:], 0)]), err
|
|
}
|