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

Polling network interface octets #104

Open
gizmocuz opened this issue Jan 12, 2022 · 0 comments
Open

Polling network interface octets #104

gizmocuz opened this issue Jan 12, 2022 · 0 comments

Comments

@gizmocuz
Copy link

Hi, thanks for this project!

To be able to measure the input bandwidth of a network interface we need to do 2 polls and divide this by the poll interval to calculate the bits/seconds (octets needs to be multiplied by 8 for bps)
Would this be possible with this project?

For instance, when you poll each second:

Measurement_1 : 1000
Measurement_2 : 2000

Bandwidth (value) = (Measurement_2 - Measurement_1) / 1 = 1000 bps

When you poll every 10 seconds:

Measurement_1 : 1000
Measurement_2 : 2000

Bandwidth (value) = (Measurement_2 - Measurement_1) / 10 = 100 bps

The better the timer resolution the better (like msec instead of seconds)

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

No branches or pull requests

1 participant