Wrong rounding in rack-level power utilization figure #12838
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.5.3
Python version
3.8
Steps to Reproduce
Expected Behavior
Both to show the same
Observed Behavior
Power-feed utilization shows as "2.5%"
But rack-level utilization power shows as "2.0%"
The problem is that percentage() in
netbox/utilities/templatetags/helpers.py
rounds to nearest 0.1%Whereas Rack.get_power_utilization in netbox/dcim/models/racks.py rounds down to integer:
The text was updated successfully, but these errors were encountered: