-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
process.NetIOCounters is pointless on Linux #429
Comments
Thank you for your comment. and also psutil process class does not have |
|
@buglloc could you elaborate please? Or perhaps provide links that do so? |
This is removed if you have v3 in the import path. https://pkg.go.dev/github.com/shirou/gopsutil/v3@v3.20.11/process#Process.NetIOCounters (notice how this link/version doesn't have the |
process.NetIOCounters reads data from the
/proc/<pid>/net/dev
file. The contents of this file is the same across all pids, and also equal to the contents of the/proc/net/dev
file. So the results returned from this function is the same across all processes, and reflects the overall interface metrics.The text was updated successfully, but these errors were encountered: