Refactor CPU statistics formatting for improved precision
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:
2026-02-12 14:38:40 +03:00
parent 99f8cb2dec
commit 37cea90b4e
2 changed files with 4 additions and 4 deletions

View File

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