Hi everyone
When customizing the map, I noticed that the bps displayed on the edge is an integer. Can it be adjusted to show decimal places? Sometimes, 1.6 Gbps gets rounded to 2 Gbps, which doesn’t look very accurate.
eskyuu
29 September 2024 07:27
2
I’ve made the change here - pending approval.
librenms:master
← eskyuu:custommap-rounding
opened 07:25AM - 29 Sep 24 UTC
Make custom maps show 3 significant figures for all bps throughputs numbers. As… an example, this allows users to see whether 1Gbps is 1.04Gbps or 1.49Gbps, while leaving longer numbers like 546Mbps unchanged.
DO NOT DELETE THE UNDERLYING TEXT
#### Please note
> Please read this information carefully. You can run `./lnms dev:check` to check your code before submitting.
- [ ] Have you followed our [code guidelines?](https://docs.librenms.org/Developing/Code-Guidelines/)
- [ ] If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
- [ ] If my Pull Request makes discovery/polling/yaml changes, I have added/updated [test data](https://docs.librenms.org/Developing/os/Test-Units/).
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
2 Likes
It worked after i updated, Thank you very much!
system
Closed
7 October 2024 01:10
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.