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

Network speeds seem incorrect sometimes #2

Closed
eliyen opened this issue Oct 12, 2023 · 2 comments
Closed

Network speeds seem incorrect sometimes #2

eliyen opened this issue Oct 12, 2023 · 2 comments

Comments

@eliyen
Copy link

eliyen commented Oct 12, 2023

The displayed network speeds jump wildly sometimes, e.g. from 50 MB/s to 1 MB/s then back to 50 MB/s. This seems to happen when the status bar is updated frequently, leading me to suspect the network speeds are miscalculated if the status bar is updated more often than specified in the tmux status-interval setting. The tmux-net-speed plugin seems to have the same issue: tmux-plugins/tmux-net-speed#13

@minhdanh
Copy link
Owner

Hi @eliyen, I've just updated the code to calculate the interval rather than relying on the maximum interval of tmux. Can you please try to update the plugin to see if problem still happens? The change is here: 9db90cc

@eliyen
Copy link
Author

eliyen commented Oct 15, 2023

I tested this on several downloads and it seems to have fixed the issue. I'm not seeing huge jumps in the displayed network speeds. Thanks for the fast fix!

@eliyen eliyen closed this as completed Oct 15, 2023
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

2 participants