Explorar el Código

Closes #9881: Increase granularity in utilization graph values

jeremystretch hace 3 años
padre
commit
1bbf5d214b

+ 1 - 0
docs/release-notes/version-3.2.md

@@ -8,6 +8,7 @@
 * [#9637](https://github.com/netbox-community/netbox/issues/9637) - Add site group field to rack reservation form
 * [#9762](https://github.com/netbox-community/netbox/issues/9762) - Add `nat_outside` column to the IPAddress table
 * [#9825](https://github.com/netbox-community/netbox/issues/9825) - Add contacts column to virtual machines table
+* [#9881](https://github.com/netbox-community/netbox/issues/9881) - Increase granularity in utilization graph values
 
 ### Bug Fixes
 

+ 2 - 2
netbox/utilities/templates/helpers/utilization_graph.html

@@ -12,10 +12,10 @@
       class="progress-bar {{ bar_class }}"
       style="width: {{ utilization }}%;"
     >
-      {% if utilization >= 25 %}{{ utilization|floatformat:0 }}%{% endif %}
+      {% if utilization >= 25 %}{{ utilization|floatformat }}%{% endif %}
     </div>
     {% if utilization < 25 %}
-      <span class="ps-1">{{ utilization|floatformat:0 }}%</span>
+      <span class="ps-1">{{ utilization|floatformat }}%</span>
     {% endif %}
   </div>
 {% endif %}