Commit Graph

29 Commits (93f397e135674c9dc0961d7e9f7a1ef73402b325)

Author SHA1 Message Date
mingrammer 017c9f9cbc Fix typos 6 years ago
shirou 4923bd298a host: remove empty virtualzation check.
related to #547
There is an architecture which supports no virtualization.
7 years ago
Michal Rostecki 0225d9ddcc host: Check for error object 7 years ago
Steven Hartland f846eda923 Eliminate call to uname on FreeBSD
Improve performance by eliminating the fork out to uname on FreeBSD which also helps prevent crashes / hangs due to the outstanding fork crash bug:
golang/go#15658

Also added a test for PlatformInformation.
7 years ago
shirou d1fb05a30b Skip some test if CircleCI. 7 years ago
shirou 8b2468f1e7 Merge branch 'master' of github.com:shirou/gopsutil into feature/lxd_boot_time 7 years ago
shawnps befc2c3d92 call Fatal if length of Users() is 0 7 years ago
shirou dc3a09c1d0 [host] linux: change file if in a lxc container. 8 years ago
WAKAYAMA Shirou 114c78c777 [host]: add not implemented methods. 8 years ago
WAKAYAMA Shirou 9c5b318e0d [host] windows: define Virtualization() 8 years ago
Eric Gourlaouen 22aefb460a Replaced sys by HostSys
Added TemperatureStat string test
8 years ago
Shirou WAKAYAMA 85d3530ae8 fix test. 8 years ago
Alexey Galkin 2287b035c8 Add new test 'TestHostGuid'
For issue: https://github.com/shirou/gopsutil/issues/322
8 years ago
Conor Branagan 5afd6f21c9 Cache the boot time after first query.
When fetching stats on all processes at once there's a non-trivial amount of
time spent in the `BootTime` call. But since this value should never change
during a live process, we can use a cached version for all subsequent calls.
9 years ago
Lukas Fittl 13aedadcde Add separate kernelVersion field to host information.
This is mostly intended for Linux, where we are returning the OS version
in the PlatformVersion field, which seems reasonable. Often it is still
useful to know which Linux kernel is running.

For FreeBSD and Darwin the kernel version matches the platform version,
since they previously used the kernel version for the platform version.

For Windows the kernel version is empty, since there is no clear way
to determine it.
9 years ago
Sean Chittenden 59094cd5b7
Add HostID to the Host InfoStat struct returned from host.Info().
On supported hosts the value returned is a UUID (case preserving
from the value of the underlying OS).

For Linux this is generated once, randomly per boot.  For FreeBSD and
Darwin this is a more durable value that should persist across reboots.
9 years ago
Sean Chittenden fcd296ea11
Merge branch 'master' of github.com:shirou/gopsutil 9 years ago
Sean Chittenden 69f7f8eaeb
Update host.Info() to return the number of processes on all platforms.
Fixes: #227
9 years ago
WAKAYAMA Shirou 53406b2832 [host]Windows: BootTime and Uptime are reversed on Windows. 9 years ago
WAKAYAMA shirou e864f2a037 [disk]freebsd: update 386. 9 years ago
Shirou WAKAYAMA 4bb84648bf JSON representation is renamed to fit Google JSON style, camelCase. 9 years ago
Shirou WAKAYAMA ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 9 years ago
Shirou WAKAYAMA 0afd653fab host[all]: fix #114 String() issue. 9 years ago
Shirou WAKAYAMA 3bd9ace228 [linux] fix Host.BootTime(). It was seconds from Booted, not from epoch. 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 a4671fcc2a move subdirectories. refer to issue #24 10 years ago