Option to Disable dynamic bps scale and set a static bps value on the Traffic Report page#10277
Closed
NGD-Skier wants to merge 1 commit intoopnsense:masterfrom
Closed
Conversation
…e on the Traffic Report page, so they can, for example, set the max upload and max download rates, and have the traffic graph just use that for scale, so at a glance, they can see a visual representation of how much of their available bandwidth they're using. This changes the default behavior where the graph sometimes suggests that bandwidth is maxed out, even when very little bandwidth is being used, as the graph auto-scales its vertical axis down to much smaller values when bandwidth usage is low. This original behavior is retained when the "Auto Max In" and "Auto Max Out" check boxes are check, but when you uncheck them, you can specify both your max in/out scale (convenient for people with asymmetric connection speeds). i.e. With the new, optional behavior, if you look and see that the graph is maxed out, then you know your bandwidth is being fully used, if the graph shows traffic at half the height of the graph, then half your bandwidth is being used, and if you're using minimal to no bandwidth, the graph will be near the bottom instead of auto-scaling and "zooming" in, making it look like your connection is experiencing high usage when its not. The only files changed to enable this additional functionality is traffic.volt. Nothing else has been changed. This is related to the discussion of issue opnsense#6527 found at opnsense#6527 Thanks to user AdSchellevis for suggesting where this change would be made. -Mike
Author
Author
Author
Author
Closed
2 tasks
Member
|
@NGD-Skier 6d94603 should do roughly what you are looking for, also explains a bit why I'm not a huge fan of AI generated code these days. There's one thing AI is very good in and that is collecting technical debt I'm afraid.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.




The intent of this branch is to allow a user to set a static bps value on the Traffic Report page, so they can, for example, set the max upload and max download rates, and have the traffic graph just use that for scale, so at a glance, they can see a visual representation of how much of their available bandwidth they're using.
This changes the default behavior where the graph sometimes suggests that bandwidth is maxed out, even when very little bandwidth is being used, as the graph auto-scales its vertical axis down to much smaller values when bandwidth usage is low. This original behavior is retained when the "Auto Max In" and "Auto Max Out" check boxes are check, but when you uncheck them, you can specify both your max in/out scale (convenient for people with asymmetric connection speeds).
i.e. With the new, optional behavior, if you look and see that the graph is maxed out, then you know your bandwidth is being fully used, if the graph shows traffic at half the height of the graph, then half your bandwidth is being used, and if you're using minimal to no bandwidth, the graph will be near the bottom instead of auto-scaling and "zooming" in, making it look like your connection is experiencing high usage when its not.
The only files changed to enable this additional functionality is traffic.volt. Nothing else has been changed.
This is related to the discussion of issue #6527 found at #6527
Thanks to user AdSchellevis for suggesting where this change would be made.
Before submitting this PR, I fully updated my local OpnSense system to the latest version (as of today, May 8th, 2026), rebooted, and then tested the modified file to verify that both original functionality and updated functionality work correctly.
-Mike
Important notices
Before you submit a pull request, we ask you kindly to acknowledge the following:
If AI was used, please disclose:
Describe the problem
The dynamic Y-axis in the "Reporting: Traffic" page makes utilization hard to judge at a glance, and this adds optional fixed max rates for In/Out, so at a glance you can tell roughly how much of your bandwidth capacity it being used (instead of seeing a graph that looks maxed out, but then looking at the auto-scaled Y axis and realizing the scale is 1Mb, and you're barely using any of your 100Mb connection's potential).
Describe the proposed solution
It changes the file "traffic.volt," to affect the preferred behavior mentioned above. The original behavior is retained when the "Auto Max In" and "Auto Max Out" checkboxes are checked.
Related issue
#6527