Skip to content

Commit 9995400

Browse files
authored
Round packet loss value to two decimal places in latest result stats (alexjustesen#2515)
Co-authored-by: Alex Justesen <[email protected]>
1 parent 0cd47d4 commit 9995400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/livewire/latest-result-stats.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
</x-slot>
142142

143143
<p class="flex items-baseline gap-x-2">
144-
<span class="text-xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-100">{{ $this->latestResult?->packet_loss }}</span>
144+
<span class="text-xl font-semibold tracking-tight text-zinc-900 dark:text-zinc-100">{{ round($this->latestResult?->packet_loss, 2) }}</span>
145145
<span class="text-sm text-zinc-600 dark:text-zinc-400">%</span>
146146
</p>
147147
</x-filament::section>

0 commit comments

Comments
 (0)