[PR #11071] [MERGED] 11041 return power percentage with 1 decimal place #13734

Closed
opened 2025-12-29 23:20:30 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11071
Author: @arthanson
Created: 12/1/2022
Status: Merged
Merged: 12/1/2022
Merged by: @jeremystretch

Base: developHead: 11041-power-percentage


📝 Commits (1)

  • 92ee2f1 11041 return power percentage with 1 decimal place

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 netbox/utilities/templatetags/helpers.py (+2 -1)

📄 Description

Fixes: #11041

See bug report - power feed utilization is shown as percentage with 1 decimal place, but the function returns with 0 decimal places, this fixes it to return one decimal place. Code search shows percentage template tag only used for showing power graphs so should have no side-effects.

Monosnap TestFeed1 | NetBox 2022-12-01 08-52-48


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/11071 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 12/1/2022 **Status:** ✅ Merged **Merged:** 12/1/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11041-power-percentage` --- ### 📝 Commits (1) - [`92ee2f1`](https://github.com/netbox-community/netbox/commit/92ee2f1639ef45e4df4af4f5ddd1e6bb00d4a31c) 11041 return power percentage with 1 decimal place ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/templatetags/helpers.py` (+2 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #11041 <!-- Please include a summary of the proposed changes below. --> See bug report - power feed utilization is shown as percentage with 1 decimal place, but the function returns with 0 decimal places, this fixes it to return one decimal place. Code search shows percentage template tag only used for showing power graphs so should have no side-effects. ![Monosnap TestFeed1 | NetBox 2022-12-01 08-52-48](https://user-images.githubusercontent.com/99642/205112578-61002821-f9c2-4be1-996d-48a401f534d1.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:20:30 +01:00
adam closed this issue 2025-12-29 23:20:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13734