Refactor CPU statistics formatting for improved precision
Some checks failed
CI / ci (push) Has been cancelled
Some checks failed
CI / ci (push) Has been cancelled
- Updated JavaScript to ensure CPU total, free, and usage values are formatted as numbers with one decimal place for consistency. - Modified HTML template to apply float formatting to the displayed free CPU value, enhancing clarity in metrics presentation.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<progress class="progress progress-primary w-full" value="{{ pcpu.used_percentage }}" max="100"></progress>
|
||||
<div class="flex justify-between text-xs">
|
||||
<span class="text-base-content/60">Free</span>
|
||||
<span class="font-medium">{{ pcpu.free }} CPU</span>
|
||||
<span class="font-medium">{{ pcpu.free|floatformat:1 }} CPU</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user