Commit Graph

412 Commits

Author SHA1 Message Date
WAKAYAMA shirou bb04b692c3 disk[freebsd]: update devstat mib. 2015-09-03 10:38:21 +09:00
WAKAYAMA shirou 6365c902e7 disk[freebsd]: fix typo. 2015-09-03 09:49:48 +09:00
shirou af29b38440 Merge pull request #69 from vrecan/fix_build
Fix windows compile issues
2015-09-03 09:30:59 +09:00
Ben Aldrich 85a89e707b fix compile fail 2015-09-02 11:27:47 -06:00
Shirou WAKAYAMA 47f6760cf3 cpu[darwin]: use CGO to get CPUTimes. This is breaking. see #66. 2015-08-28 17:01:43 +09:00
shirou 3c958a8ee6 Merge pull request #60 from mayowa/master
Bug fix and HostStatInfo.Platform* windows implementation
2015-08-28 16:26:02 +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 6fa0704dbf fixed: ProcessorId doesnt return a value 2015-08-28 06:56:05 +01:00
shirou 3a625ab13f Merge pull request #64 from influxdb/master
Fix memory reporting for linux systems
2015-08-28 07:45:56 +09:00
Cameron Sparr 1a037fddb1 Fix disk usage stats for windows 2015-08-27 09:51:03 -06:00
Cameron Sparr ce70817f55 Fix memory reporting for linux systems
/proc/meminfo reports memory in KiloBytes and so needs a multiplier of
1024 instead of 1000.
The kernel reports in terms of pages and the proc filesystem is left
shifting by 2 for 4KB pages to get KB. Since this is a binary shift,
Bytes will need to shift by 10 and so get multiplied by 1024.

From the kernel code. PAGE_SHIFT = 12 for 4KB pages
"MemTotal:       %8lu kB\n", K(i.totalram)

Thanks to @subhachandrachandra!
2015-08-27 09:41:19 -06:00
Shirou WAKAYAMA 0d7ff2eb40 cpu[darwin]: convert cpu frequency to Mhz. 2015-08-27 15:50:35 +09:00
shirou b1a93c4e33 Merge pull request #61 from cbednarski/f-darwin-cpu
Read Darwin CPU frequency from sysctl hw.cpufrequency
2015-08-27 15:47:26 +09:00
Chris Bednarski d5fa4f880f Read Darwin CPU frequency from sysctl hw.cpufrequency 2015-08-26 11:45:09 -07: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
mayowa 7889ce3e03 changed ProccessorId type to *string, cause wmi sometimes returns nil for it 2015-08-25 22:21:10 -07:00
mayowa 6a2bc5afe8 removed l2CacheSize as its not present in all wmi databases 2015-08-25 22:08:35 -07:00
shirou c715bd1b0b Merge pull request #59 from mjkim/master
return value of "sysctl hw.memsize" is memory size in bytes.
2015-08-16 21:40:38 +09:00
Myungjun Kim c5b94d3e4c memory[darwin]: return value of "sysctl hw.memsize" is memory size in bytes. 2015-08-16 16:32:53 +09:00
WAKAYAMA shirou c64c974c1a Merge branch 'master' of github.com:shirou/gopsutil 2015-08-15 01:21:27 +09: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 59c4b4ca75 disk[linux]: fix fstype map. 2015-08-14 20:37:35 +09:00
Shirou WAKAYAMA 7fb126f1bf disk[linux]: fix fstype dup. 2015-08-14 18:18:34 +09:00
Shirou WAKAYAMA ad6c3f60a7 disk[freebsd,darwin,windows]: add fstype to DiskUsageStat. 2015-08-14 18:08:43 +09:00
Shirou WAKAYAMA 1223e28905 docker[linux]: change docker error valiable and add cgroup error. 2015-08-07 10:16:06 +09:00
shirou a365e17869 Merge pull request #58 from influxdb/docker-non-linux
Allow gopsutil docker to build on non-linux boxes by stubbing out non…
2015-08-07 07:56:35 +09:00
Cameron Sparr 7a2d225b30 Allow gopsutil docker to build on non-linux boxes by stubbing out non-linux libraries 2015-08-05 10:19:36 -06:00
Shirou WAKAYAMA cbe10d6761 cpu[darwin]: move helper path to under the HOME dir. 2015-07-29 22:25:42 +09:00
Shirou WAKAYAMA c195d77ce3 cpu[darwin]: enable cpu helper only the environemnetal variable set. 2015-07-25 12:49:02 +09:00
Shirou WAKAYAMA 755d3a4119 cpu[darwin]: change default tick to 100. 2015-07-24 15:01:22 +09:00
Shirou WAKAYAMA 12843632ca cpu[darwin]: experimental implemtation to get CPU times on darwin. 2015-07-24 14:49:35 +09:00
Shirou WAKAYAMA 61cb121015 disk[unix]: fix free. 2015-07-23 11:39:50 +09:00
Shirou WAKAYAMA a9e65ec556 mem[darwin]: fix VirtualMem stat multiply. 2015-07-23 11:39:22 +09:00
Shirou WAKAYAMA a22c0c27d9 linux: fix ctime in linux. 2015-07-23 11:38:47 +09:00
Shirou WAKAYAMA feb4fc9706 docker: fix field name. 2015-07-23 11:24:45 +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 9822959f18 LICENSE: fix program name. 2015-07-20 01:05:05 +09:00
Shirou WAKAYAMA 5854011870 cpu: Steal, Guest, and GuestNice are not divided by CPU_TICK. 2015-07-17 22:11:30 +09:00
WAKAYAMA shirou 4bc631921f cpu: fix command output trim problem. 2015-07-17 21:52:43 +09:00
Shirou WAKAYAMA 8c17a750c6 get CLOCK TICK by using getconf. 2015-07-17 21:46:26 +09:00
shirou 06a4ba734e Merge pull request #53 from ooclab/fix-cpu-stat
Fix interpretation error about /proc/stat
2015-07-16 00:42:48 +09:00
gwind a750762737 Fix interpretation error about /proc/stat 2015-07-15 16:20:12 +08:00
shirou 79f276e18a Merge pull request #52 from cornerot/patch-1
fix gosiger -> gosigar
2015-07-09 22:40:27 +09:00
cornerot 4048014170 fix gosiger -> gosigar 2015-07-09 16:16:35 +03:00
Shirou WAKAYAMA 0921e1f153 [linux] Process.CreateTime was returned msec, not sec. 2015-06-19 12:05:07 +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
shirou c71f9ee5be Merge pull request #49 from databus23/suse_detection
Add SuSe platform detection
2015-06-18 19:34:21 +09:00
Fabian Ruff 91a97374c4 Add SuSe platform detection 2015-06-18 11:52:49 +02:00