فهرست منبع

Closes #9881: Increase granularity in utilization graph values

jeremystretch 3 سال پیش
والد
کامیت
1bbf5d214b
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 0
      docs/release-notes/version-3.2.md
  2. 2 2
      netbox/utilities/templates/helpers/utilization_graph.html

+ 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
 * [#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
 * [#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
 * [#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
 ### Bug Fixes
 
 

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

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