mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-10 19:29:14 +08:00

All BSDs use the same implementation to get BootTime{,WithContext} and Uptime{,WithContext} based on the kern.boottime sysctl. Move this implementation to a separate host/host_bsd.go file shared by darwin, freebsd and openbsd. Also use SysctlTimeval to get the boot time directly as a type Timeval instead of manually extracting it using package unsafe. It will also allow for easier reuse to support package host on e.g. Dragonfly BSD or NetBSD. This requires updating the golang.org/x/sys/unix dependency to the latest revision. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
86 lines
2.3 KiB
TOML
86 lines
2.3 KiB
TOML
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
|
|
|
|
|
[[projects]]
|
|
digest = "1:9909e0a06cff3bd88841c9d2e0cc91b0a431676009018c74c3315f33b49b0046"
|
|
name = "github.com/StackExchange/wmi"
|
|
packages = ["."]
|
|
pruneopts = "UT"
|
|
revision = "cbe66965904dbe8a6cd589e2298e5d8b986bd7dd"
|
|
version = "1.1.0"
|
|
|
|
[[projects]]
|
|
digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec"
|
|
name = "github.com/davecgh/go-spew"
|
|
packages = ["spew"]
|
|
pruneopts = "UT"
|
|
revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73"
|
|
version = "v1.1.1"
|
|
|
|
[[projects]]
|
|
digest = "1:440028f55cb322d8cb5b9d5ebec298a00b7d74690a658fe6b1c0c0b44341bfae"
|
|
name = "github.com/go-ole/go-ole"
|
|
packages = [
|
|
".",
|
|
"oleutil",
|
|
]
|
|
pruneopts = "UT"
|
|
revision = "97b6244175ae18ea6eef668034fd6565847501c9"
|
|
version = "v1.2.4"
|
|
|
|
[[projects]]
|
|
digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe"
|
|
name = "github.com/pmezard/go-difflib"
|
|
packages = ["difflib"]
|
|
pruneopts = "UT"
|
|
revision = "792786c7400a136282c1664665ae0a8db921c6c2"
|
|
version = "v1.0.0"
|
|
|
|
[[projects]]
|
|
digest = "1:efd3a1c83607945eb57cb6cf9c5a87f1c709fb9fdfbd3d8f729ff03943275465"
|
|
name = "github.com/stretchr/testify"
|
|
packages = [
|
|
"assert",
|
|
"require",
|
|
]
|
|
pruneopts = "UT"
|
|
revision = "004e3cb72213e5e727e4e08f668ee6c8f27e5d32"
|
|
version = "v1.6.0"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
digest = "1:e7b553682850788c6b266faaf25218ce901558e541102d12b2998cad99f6b4fb"
|
|
name = "golang.org/x/sys"
|
|
packages = [
|
|
"internal/unsafeheader",
|
|
"unix",
|
|
"windows",
|
|
"windows/svc",
|
|
"windows/svc/mgr",
|
|
]
|
|
pruneopts = "UT"
|
|
revision = "76b94024e4b621e672466e8db3d7f084e7ddcad2"
|
|
|
|
[[projects]]
|
|
branch = "v3"
|
|
digest = "1:f87d6c8edf5e57ae4a355abc05aca1dbf38b073068bba96c1fbbff852a1e2fd3"
|
|
name = "gopkg.in/yaml.v3"
|
|
packages = ["."]
|
|
pruneopts = "UT"
|
|
revision = "2ff61e1afc866138abf1a8adf3cc89721090ac31"
|
|
|
|
[solve-meta]
|
|
analyzer-name = "dep"
|
|
analyzer-version = 1
|
|
input-imports = [
|
|
"github.com/StackExchange/wmi",
|
|
"github.com/stretchr/testify/assert",
|
|
"github.com/stretchr/testify/require",
|
|
"golang.org/x/sys/unix",
|
|
"golang.org/x/sys/windows",
|
|
"golang.org/x/sys/windows/svc",
|
|
"golang.org/x/sys/windows/svc/mgr",
|
|
]
|
|
solver-name = "gps-cdcl"
|
|
solver-version = 1
|