1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

26 Commits

Author SHA1 Message Date
shirou
8563278a9d Revert "Merge pull request #541 from sify21/fix_435"
This reverts commit a9c2f23bc2fcea5d4da58d476a2b2da6cb7fb214, reversing
changes made to ebfe800cf98758137226a1e90122a1c0569dd9dd.
2018-06-24 00:46:27 +09:00
司芳源
1b641b25eb not export custom types 2018-06-22 16:18:18 +08:00
司芳源
98cd971621 wrong variable 2018-06-22 10:03:04 +08:00
司芳源
facd46a4a5 Implement disk.GetDiskSerialNumber for Windows via WMI. Parameter should be drive letter, so it can be used in IOCountersStat. See last part of https://msdn.microsoft.com/en-us/library/windows/desktop/aa394592(v=vs.85).aspx. 2018-06-22 09:34:39 +08:00
sada
8dd42707e2 windows: fix WithContext functions
set timeout only if parent context doesn't set.
2018-02-12 13:26:17 -08:00
shirou
4c73494c78 Add WithContext functions. 2017-12-31 15:25:49 +09:00
leaf
65598d98cc To prevent hang if wmi.Query hangs, add a context-aware wrapper for it. 2017-11-20 10:13:27 -08:00
Sean Chittenden
635b971c0e
Move from the syscall package to the golang.org/x/sys/{unix,windows} 2017-06-02 13:51:00 -07:00
shirou
37c114fe6c Merge pull request #366 from tmm1/patch-2
Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes
2017-05-09 10:15:49 +09:00
Aman Gupta
f2cbbac707 Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes 2017-05-08 14:23:46 -07:00
Aman Gupta
b59c2a2be3 Include "DRIVE_REMOTE" volumes on windows 2017-05-08 09:50:38 -07:00
Daniel Nelson
3830ed16b4
Make IOCounters a variadic function
Remove IOCountersForNames that was recently added in favor of variadic
function with same capabilities.
2017-04-13 18:53:09 -07:00
WAKAYAMA Shirou
dfbb3e40da fix build bugs. 2017-04-10 22:24:36 +09:00
Daniel Nelson
3f35f001da
Add disk.IOCountersForNames function
Operates like disk.IOCounters, but accepts an array of names to limit
the results.
2017-04-06 18:00:54 -07:00
Shirou WAKAYAMA
ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 2016-03-22 23:09:12 +09:00
Shirou WAKAYAMA
7288e9a5af common[all]: add internal 2015-10-20 00:04:57 +09:00
WAKAYAMA Shirou
773d9d3caa disk[windows]: change to use WMI to get disk io counter information. 2015-09-05 22:53:18 +09:00
Ben Aldrich
0fab61e73e remove log message 2015-09-04 13:41:08 -06:00
Ben Aldrich
6c000b035d don't fail if cd is not in a drive
add used and usedPercent back in
2015-09-04 11:51:34 -06:00
Ben Aldrich
85a89e707b fix compile fail 2015-09-02 11:27:47 -06:00
Cameron Sparr
1a037fddb1 Fix disk usage stats for windows 2015-08-27 09:51:03 -06:00
WAKAYAMA Shirou
612e7109e1 delete debug 2015-02-19 23:53:54 +09:00
WAKAYAMA Shirou
bb1747fc85 disk: implements DiskIoCounterInfo on windows. Note: only read/write counts during 500 msec.
Thanks for mackerel-agent!
2015-02-19 23:52:06 +09:00
Shirou WAKAYAMA
13cd195a7e change package name. 2014-12-30 22:09:05 +09:00
WAKAYAMA Shirou
9f2c985a28 fix windows build. 2014-11-27 22:28:05 +09:00
Shirou WAKAYAMA
a4671fcc2a move subdirectories. refer to issue #24 2014-11-27 10:18:15 +09:00