Commit Graph

32 Commits (9ffeb8d368745267a18b2b179aa48324ef6568e6)

Author SHA1 Message Date
Sergey Vinogradov 8ff2ab3187 Add "vet" target to the Makefile
Making the "vet" target will run "go vet ./..." for each supported
GOOS.

Also, some of the warnings produced by go 1.15 vet were mitigated.
4 years ago
Lomanic f98100720e [process][windows] Fix #846 use win32 API in disk.IOCounters() instead of slow WMI call returning wrong values 5 years ago
shirou b2eb6640fb [disk][windows]: does not define ret at begining of the function.
To reduce memory when error happend. commented on #653.
6 years ago
shirou 852c7686b5
Merge pull request #613 from tmm1/allow-a-b-windows-drives
do not ignore A: and B: drives on windows
6 years ago
Aman Gupta d021425af3 do not ignore A: and B: drives on windows
from https://www.howtogeek.com/122891/what-are-the-windows-a-and-b-drives-used-for/

>if your computer does not have floppy disk drives, you can assign A and B to volumes
6 years ago
Aman Gupta ab57d4a5fe fix minor typo in disk_windows 6 years ago
shirou 8563278a9d Revert "Merge pull request #541 from sify21/fix_435"
This reverts commit a9c2f23bc2, reversing
changes made to ebfe800cf9.
7 years ago
司芳源 1b641b25eb not export custom types 7 years ago
司芳源 98cd971621 wrong variable 7 years ago
司芳源 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. 7 years ago
sada 8dd42707e2 windows: fix WithContext functions
set timeout only if parent context doesn't set.
7 years ago
shirou 4c73494c78 Add WithContext functions. 7 years ago
leaf 65598d98cc To prevent hang if wmi.Query hangs, add a context-aware wrapper for it. 7 years ago
Sean Chittenden 635b971c0e
Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
shirou 37c114fe6c Merge pull request #366 from tmm1/patch-2
Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes
8 years ago
Aman Gupta f2cbbac707 Ignore GetVolumeInformation errors on DRIVE_REMOVABLE volumes 8 years ago
Aman Gupta b59c2a2be3 Include "DRIVE_REMOTE" volumes on windows 8 years ago
Daniel Nelson 3830ed16b4
Make IOCounters a variadic function
Remove IOCountersForNames that was recently added in favor of variadic
function with same capabilities.
8 years ago
WAKAYAMA Shirou dfbb3e40da fix build bugs. 8 years ago
Daniel Nelson 3f35f001da
Add disk.IOCountersForNames function
Operates like disk.IOCounters, but accepts an array of names to limit
the results.
8 years ago
Shirou WAKAYAMA ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 9 years ago
Shirou WAKAYAMA 7288e9a5af common[all]: add internal 10 years ago
WAKAYAMA Shirou 773d9d3caa disk[windows]: change to use WMI to get disk io counter information. 10 years ago
Ben Aldrich 0fab61e73e remove log message 10 years ago
Ben Aldrich 6c000b035d don't fail if cd is not in a drive
add used and usedPercent back in
10 years ago
Ben Aldrich 85a89e707b fix compile fail 10 years ago
Cameron Sparr 1a037fddb1 Fix disk usage stats for windows 10 years ago
WAKAYAMA Shirou 612e7109e1 delete debug 10 years ago
WAKAYAMA Shirou bb1747fc85 disk: implements DiskIoCounterInfo on windows. Note: only read/write counts during 500 msec.
Thanks for mackerel-agent!
10 years ago
Shirou WAKAYAMA 13cd195a7e change package name. 10 years ago
WAKAYAMA Shirou 9f2c985a28 fix windows build. 10 years ago
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24 10 years ago