Skip to content

Percentage calculation helper#14235

Merged
Jellyfrog merged 2 commits intolibrenms:masterfrom
murrant:percent-calc-zero
Aug 24, 2022
Merged

Percentage calculation helper#14235
Jellyfrog merged 2 commits intolibrenms:masterfrom
murrant:percent-calc-zero

Conversation

@murrant
Copy link
Copy Markdown
Member

@murrant murrant commented Aug 24, 2022

Helper function to prevent divide by zero mistakes
Replace all percent calculations

Please give a short description what your pull request is for

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?
  • 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.

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.

Helper function to prevent divide by zero mistakes
Replace all percent calculations
@Jellyfrog Jellyfrog merged commit 3416370 into librenms:master Aug 24, 2022
@murrant murrant deleted the percent-calc-zero branch September 4, 2022 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants