1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #9881: Increase granularity in utilization graph values

This commit is contained in:
jeremystretch
2022-08-01 10:23:18 -04:00
parent 8a075bcff9
commit 1bbf5d214b
2 changed files with 3 additions and 2 deletions

View File

@@ -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 %}