Skip to content

Commit 89b848d

Browse files
committed
Fix percent calc
1 parent 89d9372 commit 89b848d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/livewire/requests-summary.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</div>
4242
<div class="flex flex-col justify-center">
4343
<span class="text-xl uppercase font-bold text-gray-700 dark:text-gray-300 tabular-nums">
44-
{{ ((int) ($totalRequests->total / ($totalRequests->total + $totalRequests->success) * 10000)) / 100 }}%
44+
{{ number_format($totalRequests->success / $totalRequests->total * 100, 2) }}%
4545
</span>
4646
<span class="text-xs uppercase font-bold text-gray-500 dark:text-gray-400">
4747
Success Rate
@@ -87,7 +87,7 @@
8787
@endif
8888
</x-pulse::td>
8989
<x-pulse::td numeric class="text-gray-700 dark:text-gray-300 font-bold">
90-
{{ ((int) ($row->total / ($row->total + $row->success) * 10000)) / 100 }}%
90+
{{ number_format($row->success / $row->total * 100, 2) }}%
9191
</x-pulse::td>
9292
</tr>
9393
@endforeach

0 commit comments

Comments
 (0)