shirou
|
1f733a99dc
|
[disk] move without context functions to disk.go.
|
2020-10-24 22:03:58 +09:00 |
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.
|
2020-10-10 16:50:49 +03:00 |
Lomanic
|
f98100720e
|
[process][windows] Fix #846 use win32 API in disk.IOCounters() instead of slow WMI call returning wrong values
|
2020-03-13 23:57:17 +01:00 |
shirou
|
b2eb6640fb
|
[disk][windows]: does not define ret at begining of the function.
To reduce memory when error happend. commented on #653.
|
2019-03-23 09:48:18 +09:00 |
shirou
|
852c7686b5
|
Merge pull request #613 from tmm1/allow-a-b-windows-drives
do not ignore A: and B: drives on windows
|
2018-11-21 20:19:05 +09:00 |
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
|
2018-11-20 13:09:36 -08:00 |
Aman Gupta
|
ab57d4a5fe
|
fix minor typo in disk_windows
|
2018-11-20 13:04:18 -08:00 |
shirou
|
8563278a9d
|
Revert "Merge pull request #541 from sify21/fix_435"
This reverts commit a9c2f23bc2 , reversing
changes made to ebfe800cf9 .
|
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 |