fix: safer float formatting in site show template
This commit is contained in:
parent
08b876b207
commit
eb4556300e
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@
|
|||
<div>
|
||||
<h3 class="text-sm font-semibold text-gray-700 dark:text-gray-300">Preseem QoE Score</h3>
|
||||
<p class={["mt-1 text-3xl font-bold", qoe_color(@qoe_summary[:score])]}>
|
||||
{if @qoe_summary[:score], do: :erlang.float_to_binary(@qoe_summary[:score], decimals: 1), else: "—"}
|
||||
{if @qoe_summary[:score], do: Float.round(@qoe_summary[:score] / 1, 1), else: "—"}
|
||||
</p>
|
||||
</div>
|
||||
<%= if @qoe_summary[:capacity_score] do %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue