Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The names passed into IOCountersWithContext func in disk_windows.go is not used to filter devices #1687

Closed
1 of 5 tasks
zmyzheng opened this issue Aug 9, 2024 · 0 comments

Comments

@zmyzheng
Copy link
Contributor

zmyzheng commented Aug 9, 2024

Describe the bug

The IOCountersWithContext func in disk_windows.go accepts a list of device names as the filter, however, the windows imlementation of this func does not implements the filter. The linux version and darwin version don't have this issue.

To Reproduce

stats, err := disk.IOCounters(deviceNames...)

Expected behavior
The IOCounter returned should filter device names

Environment (please complete the following information):

  • Windows: [paste the result of ver] windows server 2022
  • Linux: [paste contents of /etc/os-release and the result of uname -a]
  • Mac OS: [paste the result of sw_vers and uname -a
  • FreeBSD: [paste the result of freebsd-version -k -r -u and uname -a]
  • OpenBSD: [paste the result of uname -a]

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants