Commit Graph

769 Commits (b4846b445bc8ef8f09a2b5d423c4aa8304f8d6c0)
 

Author SHA1 Message Date
shirou 502be48c80 Merge pull request #71 from vrecan/patch-1
Fix cpu percent on windows
Ben Aldrich a4ec4177a6 Fix cpu percent on windows
Tested on windows 7:

When divided by 100 you get cpu percentage of  %0.14 when task manager shows %14. Once this is removed they match.
Ben Aldrich 0fab61e73e remove log message
Ben Aldrich 6c000b035d don't fail if cd is not in a drive
add used and usedPercent back in
WAKAYAMA Shirou 5c8a03100e process[windows]: take common function to get Win32_Processes.
WAKAYAMA Shirou cbd943016a process[windows]: implement CreateTime.
WAKAYAMA Shirou 4696985e84 cpu[windows]: skip if could not get cpu.LoadPercentage.
WAKAYAMA shirou bb04b692c3 disk[freebsd]: update devstat mib.
WAKAYAMA shirou 6365c902e7 disk[freebsd]: fix typo.
shirou af29b38440 Merge pull request #69 from vrecan/fix_build
Fix windows compile issues
Ben Aldrich 85a89e707b fix compile fail
Shirou WAKAYAMA 47f6760cf3 cpu[darwin]: use CGO to get CPUTimes. This is breaking. see #66.
shirou 3c958a8ee6 Merge pull request #60 from mayowa/master
Bug fix and HostStatInfo.Platform* windows implementation
mayowa bf16d0a6a7 modified PlatformVersion and PlatformFamily string to (somewhat) match the output from sysinfo
mayowa 6fa0704dbf fixed: ProcessorId doesnt return a value
shirou 3a625ab13f Merge pull request #64 from influxdb/master
Fix memory reporting for linux systems
Cameron Sparr 1a037fddb1 Fix disk usage stats for windows
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!
Shirou WAKAYAMA 0d7ff2eb40 cpu[darwin]: convert cpu frequency to Mhz.
shirou b1a93c4e33 Merge pull request #61 from cbednarski/f-darwin-cpu
Read Darwin CPU frequency from sysctl hw.cpufrequency
Chris Bednarski d5fa4f880f Read Darwin CPU frequency from sysctl hw.cpufrequency
mayowa ee43e655c2 implemented GetPlatformInfo and refactored HostInfo() to use it
mayowa 56d70ecc5e implemented HostStatInfo.Platform* for windows
mayowa 7889ce3e03 changed ProccessorId type to *string, cause wmi sometimes returns nil for it
mayowa 6a2bc5afe8 removed l2CacheSize as its not present in all wmi databases
shirou c715bd1b0b Merge pull request #59 from mjkim/master
return value of "sysctl hw.memsize" is memory size in bytes.
Myungjun Kim c5b94d3e4c memory[darwin]: return value of "sysctl hw.memsize" is memory size in bytes.
WAKAYAMA shirou c64c974c1a Merge branch 'master' of github.com:shirou/gopsutil
WAKAYAMA shirou abb4086531 host[freebsd]: change to use utmpx for 9.0 or later.
Shirou WAKAYAMA 59c4b4ca75 disk[linux]: fix fstype map.
Shirou WAKAYAMA 7fb126f1bf disk[linux]: fix fstype dup.
Shirou WAKAYAMA ad6c3f60a7 disk[freebsd,darwin,windows]: add fstype to DiskUsageStat.
Shirou WAKAYAMA 1223e28905 docker[linux]: change docker error valiable and add cgroup error.
shirou a365e17869 Merge pull request #58 from influxdb/docker-non-linux
Allow gopsutil docker to build on non-linux boxes by stubbing out non…
Cameron Sparr 7a2d225b30 Allow gopsutil docker to build on non-linux boxes by stubbing out non-linux libraries
Shirou WAKAYAMA cbe10d6761 cpu[darwin]: move helper path to under the HOME dir.
Shirou WAKAYAMA c195d77ce3 cpu[darwin]: enable cpu helper only the environemnetal variable set.
Shirou WAKAYAMA 755d3a4119 cpu[darwin]: change default tick to 100.
Shirou WAKAYAMA 12843632ca cpu[darwin]: experimental implemtation to get CPU times on darwin.
Shirou WAKAYAMA 61cb121015 disk[unix]: fix free.
Shirou WAKAYAMA a9e65ec556 mem[darwin]: fix VirtualMem stat multiply.
Shirou WAKAYAMA a22c0c27d9 linux: fix ctime in linux.
Shirou WAKAYAMA feb4fc9706 docker: fix field name.
Shirou WAKAYAMA ba88128af1 host_linux: change some virtualization check StringsContains to StringsHas.`
Shirou WAKAYAMA b5ffc220a6 common: Rename StringContains to StringsContains and add StringsHas.
Shirou WAKAYAMA 9822959f18 LICENSE: fix program name.
Shirou WAKAYAMA 5854011870 cpu: Steal, Guest, and GuestNice are not divided by CPU_TICK.
WAKAYAMA shirou 4bc631921f cpu: fix command output trim problem.
Shirou WAKAYAMA 8c17a750c6 get CLOCK TICK by using getconf.
shirou 06a4ba734e Merge pull request #53 from ooclab/fix-cpu-stat
Fix interpretation error about /proc/stat