Commit Graph

281 Commits (8897eba6760c3aa10bfe61285335e94317a6eb53)

Author SHA1 Message Date
Shirou WAKAYAMA 7288e9a5af common[all]: add internal 10 years ago
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
10 years ago
Jonathan Chauncey 0461c50666 chore(*): Fixes #94
Added the ability to fetch an alternative location for /proc via an
environment variable. If the env var is not set it will return /proc as
the default value.
10 years ago
Nick Galbreath 99d93f93b2 shirou/gopsutil#90 make hostinfo more robust 10 years ago
Shirou WAKAYAMA 3303647209 host[linux]: fix utmp struct on arm. 10 years ago
mayowa bf16d0a6a7 modified PlatformVersion and PlatformFamily string to (somewhat) match the output from sysinfo 10 years ago
mayowa ee43e655c2 implemented GetPlatformInfo and refactored HostInfo() to use it 10 years ago
mayowa 56d70ecc5e implemented HostStatInfo.Platform* for windows 10 years ago
WAKAYAMA shirou abb4086531 host[freebsd]: change to use utmpx for 9.0 or later. 10 years ago
Shirou WAKAYAMA ba88128af1 host_linux: change some virtualization check StringsContains to StringsHas.` 10 years ago
Shirou WAKAYAMA b5ffc220a6 common: Rename StringContains to StringsContains and add StringsHas. 10 years ago
Shirou WAKAYAMA 3bd9ace228 [linux] fix Host.BootTime(). It was seconds from Booted, not from epoch. 10 years ago
Fabian Ruff 91a97374c4 Add SuSe platform detection 10 years ago
WAKAYAMA shirou 64357f04e7 use StackExchange/wmi instead of invoking wmic process.
Note: This may not work on some old Windows XP.
10 years ago
WAKAYAMA Shirou 5f8b99aa65 windows: GetWmic returns [][]string where string split by "," 10 years ago
Shirou WAKAYAMA 8f05d68a09 host: forget to convert to uint64. 10 years ago
Shirou WAKAYAMA 515398a6f6 host: Boottime return type was wrong on darwin #40 10 years ago
WAKAYAMA Shirou 4b0f5a03dc host: use wmic OS instead of calling GetTickCount on Windows. 10 years ago
若山史郎 f2435bc8de host: skip if utmp.Type is not USERPROCESS (defined in utmpx.h) 10 years ago
若山史郎 a5d366a70c host: Users() on darwin works. but Started is not correct. 10 years ago
rekby 29807862fb + host and process for linux 386 10 years ago
Shirou WAKAYAMA cfb473f810 host linux now use godefs. 10 years ago
WAKAYAMA shirou 64f1a93c00 forget to add. 10 years ago
WAKAYAMA shirou b0c9f81246 host_freebsd now use godefs 10 years ago
Shirou WAKAYAMA 13cd195a7e change package name. 10 years ago
Shirou WAKAYAMA 1cb67eb4c2 merge 039b9defab 10 years ago
Shirou WAKAYAMA 16de570414 merge 039b9defab 10 years ago
WAKAYAMA Shirou 9f2c985a28 fix windows build. 10 years ago
Shirou WAKAYAMA a1c1d7b25f fix on Linux. 10 years ago
WAKAYAMA shirou d11680c773 fix bugs on FreeBSD. 10 years ago
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24 10 years ago