[PR #12839] [MERGED] Round rack power utilization to nearest 0.1% #14054

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12839
Author: @candlerb
Created: 6/8/2023
Status: Merged
Merged: 6/12/2023
Merged by: @jeremystretch

Base: developHead: candlerb/12838


📝 Commits (1)

  • 01d9e0a Round rack power utilization to nearest 0.1%

📊 Changes

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

View changed files

📝 netbox/dcim/models/racks.py (+1 -1)

📄 Description

Fixes: #12838

Change int(...) to round(..., 1) for consistency with power-feed level display, and because rendering includes one decimal place of percentage already.


🔄 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/12839 **Author:** [@candlerb](https://github.com/candlerb) **Created:** 6/8/2023 **Status:** ✅ Merged **Merged:** 6/12/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `candlerb/12838` --- ### 📝 Commits (1) - [`01d9e0a`](https://github.com/netbox-community/netbox/commit/01d9e0afb6212ade33e85b655d156ef442906739) Round rack power utilization to nearest 0.1% ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/models/racks.py` (+1 -1) </details> ### 📄 Description ### Fixes: #12838 Change `int(...)` to `round(..., 1)` for consistency with power-feed level display, and because rendering includes one decimal place of percentage already. --- <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:22:15 +01:00
adam closed this issue 2025-12-29 23:22:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14054