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

Improve network bandwidth calculations #1

Open
PaulMaddox opened this issue Jun 17, 2014 · 0 comments
Open

Improve network bandwidth calculations #1

PaulMaddox opened this issue Jun 17, 2014 · 0 comments
Milestone

Comments

@PaulMaddox
Copy link
Member

Currently the network bandwidth calculations in NetworkUsageController.java could do with some averaging to prevent spiky behaviour, especially on higher latency connections.

Currently it works by getting the traffic counters from /proc/net/dev every second (roughly, depends on users connection). It then calculates the bandwidth by checking how many milliseconds since the last check, and dividing the different in bytes between the counters by the time difference.

I think this would be better if it took an average over either:

  • The last x number of checks
  • The last minute
@PaulMaddox PaulMaddox added this to the 1.0.0 milestone Jun 17, 2014
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

1 participant