Cameron Sparr
444ee723c3
Fix HostInfo.Uptime, which has been returning boot time
...
Also adding a HostInfo.BootTime field for holding the boot time
2015-11-23 13:18:59 -07:00
Shirou WAKAYAMA
7288e9a5af
common[all]: add internal
2015-10-20 00:04:57 +09:00
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
2015-10-18 20:40:01 -07:00
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.
2015-10-17 11:34:41 -06:00
Nick Galbreath
99d93f93b2
shirou/gopsutil#90 make hostinfo more robust
2015-10-13 13:02:02 -07:00
Shirou WAKAYAMA
3303647209
host[linux]: fix utmp struct on arm.
2015-10-01 17:21:37 +09:00
mayowa
bf16d0a6a7
modified PlatformVersion and PlatformFamily string to (somewhat) match the output from sysinfo
2015-08-28 07:39:20 +01:00
mayowa
ee43e655c2
implemented GetPlatformInfo and refactored HostInfo() to use it
2015-08-25 23:27:25 -07:00
mayowa
56d70ecc5e
implemented HostStatInfo.Platform* for windows
2015-08-25 23:03:25 -07:00
WAKAYAMA shirou
abb4086531
host[freebsd]: change to use utmpx for 9.0 or later.
2015-08-15 01:20:56 +09:00
Shirou WAKAYAMA
ba88128af1
host_linux: change some virtualization check StringsContains to StringsHas.`
2015-07-21 15:42:27 +09:00
Shirou WAKAYAMA
b5ffc220a6
common: Rename StringContains to StringsContains and add StringsHas.
2015-07-21 15:25:04 +09:00
Shirou WAKAYAMA
3bd9ace228
[linux] fix Host.BootTime(). It was seconds from Booted, not from epoch.
2015-06-19 12:00:04 +09:00
Fabian Ruff
91a97374c4
Add SuSe platform detection
2015-06-18 11:52:49 +02:00
WAKAYAMA shirou
64357f04e7
use StackExchange/wmi instead of invoking wmic process.
...
Note: This may not work on some old Windows XP.
2015-04-20 00:05:31 +09:00
WAKAYAMA Shirou
5f8b99aa65
windows: GetWmic returns [][]string where string split by ","
2015-03-20 22:48:58 +09:00
Shirou WAKAYAMA
8f05d68a09
host: forget to convert to uint64.
2015-03-12 09:25:32 +09:00
Shirou WAKAYAMA
515398a6f6
host: Boottime return type was wrong on darwin #40
2015-03-12 09:24:27 +09:00
WAKAYAMA Shirou
4b0f5a03dc
host: use wmic OS instead of calling GetTickCount on Windows.
2015-02-15 22:26:18 +09:00
若山史郎
f2435bc8de
host: skip if utmp.Type is not USERPROCESS (defined in utmpx.h)
2015-02-14 23:08:05 +09:00
若山史郎
a5d366a70c
host: Users() on darwin works. but Started is not correct.
2015-02-14 23:04:17 +09:00
rekby
29807862fb
+ host and process for linux 386
2015-02-07 11:06:59 +03:00
Shirou WAKAYAMA
cfb473f810
host linux now use godefs.
2014-12-31 22:58:39 +09:00
WAKAYAMA shirou
64f1a93c00
forget to add.
2014-12-31 22:47:22 +09:00
WAKAYAMA shirou
b0c9f81246
host_freebsd now use godefs
2014-12-31 00:30:55 +09:00
Shirou WAKAYAMA
13cd195a7e
change package name.
2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
1cb67eb4c2
merge 039b9defab
2014-12-27 23:43:18 +09:00
Shirou WAKAYAMA
16de570414
merge 039b9defab
2014-12-27 23:42:00 +09:00
WAKAYAMA Shirou
9f2c985a28
fix windows build.
2014-11-27 22:28:05 +09:00
Shirou WAKAYAMA
a1c1d7b25f
fix on Linux.
2014-11-27 10:32:35 +09:00
WAKAYAMA shirou
d11680c773
fix bugs on FreeBSD.
2014-11-27 10:25:14 +09:00
Shirou WAKAYAMA
a4671fcc2a
move subdirectories. refer to issue #24
2014-11-27 10:18:15 +09:00