Updates name present & corresponding variable name

This commit is contained in:
Josh VanDeraa 2020-12-13 20:54:21 +00:00
parent a30df92e98
commit d106a2e711
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<div {% if utilization_count and num_available %}title="Used: {{ utilization_count }}&#013Available: {{ num_available }}"
<div {% if utilization_count and total_count %}title="Used: {{ utilization_count }}&#013Total Count: {{ total_count }}"
{% endif %}class="progress text-center">
{% if utilization < 30 %}<span style="font-size: 12px;">{{ utilization }}%</span>{% endif %}
<div class="progress-bar progress-bar-{% if utilization >= danger_threshold %}danger{% elif utilization >= warning_threshold %}warning{% else %}success{% endif %}"

View File

@ -245,7 +245,7 @@ def utilization_graph(data_input, warning_threshold=75, danger_threshold=90):
'warning_threshold': warning_threshold,
'danger_threshold': danger_threshold,
'utilization_count': data_input[0],
'num_available': data_input[1],
'total_count': data_input[1],
}