Mid-Sprint Concept for #109 Add a status indicator to the Relay GUI that shows packet transfer rate over TCP #121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
THIS IS CONCEPT OF WHAT SUPPOSED TO HAPPEN NOT FULLY DONE
This is a quick concept of what the packet counter should look like, this includes the counter itself (but its counting clicks until packets are fully implememted) and a timer removes the clicks past 60 seconds. This is be replaced with the full implemnt of the packets rather than clicks once finished. you can try it by clicking the Check TCP Connection Status button and it will add that click to the counter then after 60 seconds itll remove it.
related to #109
What was changed?
Added new code in state.rs to keep track of clicks and remove old ones after 60 seconds.
changed update.rs so the counter refreshes every 10 milliseconds and records clicks when the button is pressed.
Added a new label in view.rs so the number of clicks in the last 60 seconds shows up on the screen.
Why was it changed?
Before, the GUI didn’t show if anything was changing
The new counter gives a simple way to see activity.
Using clicks for now makes it easy to test, and it will later show real packet counts.
How was it changed?
Added a list that remembers the time of each click. And it checks if any clicks in older than 60 seconds and removes them
The number of clicks left in the list is shown on the screen.
Screenshots (if applicable):
This first image is the "packets" but its me clicking 5 times and it shows

This second image is how it looks after 60 seconds have passed, the counter went back to zero
