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

Transfer rate: KB/S reading in ncurses examples slightly out of whack #40

Open
TMRh20 opened this issue Jan 8, 2025 · 0 comments
Open
Labels

Comments

@TMRh20
Copy link
Member

TMRh20 commented Jan 8, 2025

The


&

vars should be floats, since the calculation using them is done with floats.

If a lot of data is transferred, eventually the KB/S reading will be incorrect otherwise.

While we are at it, the line

float TKBS = bytesRNow > 0 ? bytesTNow / updateRate : 0.0;

should read bytesTNow

@TMRh20 TMRh20 added the bug label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant