We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We need to get disk current read/write datas.
shirou/gopsutil package provides disk.IOCounters function.
import( "github.com/shirou/gopsutil/v4/disk" ) diskIOCounts, diskIOCountErr := disk.IOCounters() if diskIOCountErr != nil { return nil, diskIOCountErr } for a, i := range diskIOCounts { fmt.Println(a) fmt.Println(i) }
! I don't know which data we is the correct one. Some of them:
ReadCount
MergedReadCount
WriteCount
MergedWriteCount
ReadBytes
WriteBytes
The text was updated successfully, but these errors were encountered:
mertssmnoglu
No branches or pull requests
We need to get disk current read/write datas.
How can we do it?
shirou/gopsutil package provides disk.IOCounters function.
! I don't know which data we is the correct one.
Some of them:
ReadCount
MergedReadCount
WriteCount
MergedWriteCount
ReadBytes
WriteBytes
The text was updated successfully, but these errors were encountered: