Nex
189b8e6d12
Fixed missing bin and unused stderr
9 years ago
Nex
b6a7649aab
Error handling
9 years ago
Nex
5c0ac28fed
Changing a little the return values
9 years ago
Nex
d9b355f75e
Added proper piping of commands
9 years ago
Nex
dd3cbcc611
Trying remove single quotes
9 years ago
Nex
1534b109ae
Fixing pid name
9 years ago
Nex
8c3e7bd255
Casting pid properly
9 years ago
Nex
9659355f49
Checking content
9 years ago
Nex
8bb06aca3d
Fixed type casting
9 years ago
Nex
5481d93989
Fixing assignment of vars
9 years ago
Nex
4f7834af25
Added attempt to get exe path from pid
9 years ago
shirou
c2dd8ca3d4
Merge pull request #269 from andhe/ppc64le
...
Allow clock field in /proc/cpuinfo as cpu MHz fallback value
9 years ago
Andreas Henriksson
9d51bfe3bb
Allow clock field in /proc/cpuinfo as cpu MHz fallback value
...
Needed on ppc64le debian porter boxes atleast.
See #230
9 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
shirou
fc800d3fb4
Merge pull request #267 from botherder/master
...
Added Terminate() for Windows
9 years ago
shirou
2facc8e8ed
Merge pull request #265 from hosting-de-labs/add-net-uid
...
add Uids field to net_linux
9 years ago
Nex
d44bd00182
Added Terminate() for Windows
9 years ago
Jean Kahrs
e004ef15e1
remove unused code
9 years ago
Jean Kahrs
d6f5a9e920
fix net_test.go
9 years ago
Jean Kahrs
98a0a30dca
update test
9 years ago
Jean Kahrs
ab24c97439
break import cycle
9 years ago
Jean Kahrs
cba0992ab3
add Uids field to net_linux
9 years ago
shirou
14eb7acb23
Merge pull request #264 from hillu/percent
...
cpu.Percent() on Windows is very slow.
9 years ago
Hilko Bengen
832dcb96c8
cpu.Percent (Windows): Use the same implementation as on Unix
...
WMI is way too slow.
9 years ago
shirou
af2b5127ea
Merge pull request #263 from digitalis-io/master
...
added weightedIO field to disk IOCountersStat (last field of /etc/mtab)
9 years ago
Marc Magnin
31f4fb8dee
fixed test TestDiskIOCountersStat_String to consider new weightedIO field
9 years ago
Marc Magnin
acf3fef036
added weightedIO field to disk IOCountersStat (last field of /etc/mtab)
9 years ago
shirou
5332238407
Merge pull request #261 from monstermunchkin/issues/260
...
process: make `ClockTicks` arch-independent
9 years ago
Thomas Hipp
68ad8d603c
process: make `ClockTicks` arch-independent
...
The value for `ClockTicks` is defined as `100` by the Linux kernel for
all currently supported architectures in Go. Therefore, there is no need
to define this constant for each architecture separately.
This fixes #260 .
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
9 years ago
shirou
c2c33439b4
Merge pull request #259 from monstermunchkin/issues/258
...
process: determine page sizes via function
9 years ago
Thomas Hipp
eb4a57117f
process: determine page sizes via function
...
Instead of hard-coding the page size for linux systems, use Go's
`Getpagesize` function.
This resolves #258 .
Signed-off-by: Thomas Hipp <thipp@suse.de>
9 years ago
shirou
214acac9ea
Merge pull request #256 from shirou/change-platform-version-on-darwin
...
[host]darwin: change to use sw_vers to get platform version
9 years ago
Shirou WAKAYAMA
4bab832fc5
fix broken CurrentStatus table.
9 years ago
Shirou WAKAYAMA
b9067179ef
[host]darwin: change to use sw_vers to get platform version
9 years ago
shirou
f20771d32a
Merge pull request #255 from lberruti/fix_swap_mem_linux
...
Fix: wrong swap values on i686 / 4GB ram.
9 years ago
shirou
ea490ab3c5
Merge pull request #254 from bclermont/fix-multidigit-interface
...
OSX Workaround: support interface with multiple digits
9 years ago
Bruno Clermont
3f96312057
only run ifconfig/netstat if necessary, add some tests
9 years ago
Luca Berruti
36f47562c0
Fix: wrong swap values on i686 / 4GB ram.
...
According to sysinfo manpages: swap fields need to be interpreted along
with the mem_unit (Unit) field.
See also http://stackoverflow.com/a/4229727
9 years ago
Bruno Clermont
145e48efdb
actually there is 13 columns, not 12
9 years ago
Bruno Clermont
57ffe3b1ef
Support interface with multiple digits
9 years ago
shirou
859c81da50
Merge pull request #253 from dvusboy/standardize_mhz
...
Standardize `Mhz` to mean maximum CPU frequency on Linux platform
9 years ago
K.C. Wong
3dc4e52844
Handle the case when the `cpufreq` sysfs does not exist
...
* on virtualized host, this may happen.
* but we may have a value from parsing `/proc/cpuinfo`
* in this case, we do not return the error if we fail to extra
a value from `cpufreq/cpuinfo_max_freq`
9 years ago
K.C. Wong
10a1ae2123
Standardize `Mhz` to mean maximum CPU frequency on Linux platform
...
* resolve #249
* in `cpu_windows.go`, `Mhz` is the value of `MaxClockSpeed`
* on Linux platform, the `Mhz` value is extracted from `/proc/cpuinfo`
which reflects the current clock speed; treat this as the fallback
value instead
* read from `cpufreq/cpuinfo_max_freq` under sysfs to get the
maximum clock speed for `Mhz`, just like for Windows platform
* also fix the path to `cpu.CoreID` value; the filename is `core_id`
9 years ago
shirou
79184fee44
Merge pull request #251 from theothertomelliott/master
...
Correctly handle long running processes on OSX
9 years ago
Shirou WAKAYAMA
08a6ab66b0
disk: If could not get Inodes, return empty.
9 years ago
shirou
a8e24d70f9
Merge pull request #247 from lfittl/fallback-for-unsupported-architectures
...
Add fallback code for all unsupported operating systems
9 years ago
Tom Elliott
1435987652
Correctly handle long running processes on OSX
...
The full etime format is dd-hh:mm:ss. Replacing '-' with ':' fixes parsing of this format.
9 years ago
shirou
0130d5f088
Merge pull request #248 from dvusboy/cpu_freq_unit
...
Addressing frequency unit discrepancies
9 years ago
K.C. Wong
123a6c9b0d
Addressing frequency unit discrepancies
...
* for Darwin, it is a minor tweak for readability: the value
returned is in Hz, so using a variable named 'hz' makes more
sense than 'mhz'
* for Linux, the unit is in kHz so we need to divide the value
from `cpuinfo_max_freq` by 10^3 to get MHz (see
cpu-freq/user-guide.txt of the kernel documentation)
9 years ago
shirou
3562fb8aa2
Merge pull request #241 from lfittl/add-host-kernel-version
...
Add separate kernelVersion field to host information
9 years ago