mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 18:01:37 +00:00
fix number format
This commit is contained in:
parent
5a9e8d6799
commit
e2dd9177f7
@ -63,19 +63,19 @@ class="h-[200px] !p-0"
|
||||
<x-simple-card class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
||||
<span class="text-center lg:text-left">Total Memory</span>
|
||||
<div class="text-center text-xl font-bold text-gray-600 dark:text-gray-400 lg:text-right">
|
||||
{{ $lastMetric ? Number::format($lastMetric->memory_total / 1024, 0) : "-" }} MB
|
||||
{{ $lastMetric ? number_format((int) ($lastMetric->memory_total / 1024)) : "-" }} MB
|
||||
</div>
|
||||
</x-simple-card>
|
||||
<x-simple-card class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
||||
<span class="text-center lg:text-left">Used Memory</span>
|
||||
<div class="text-center text-xl font-bold text-gray-600 dark:text-gray-400 lg:text-right">
|
||||
{{ $lastMetric ? Number::format($lastMetric->memory_used / 1024, 0) : "-" }} MB
|
||||
{{ $lastMetric ? number_format((int) ($lastMetric->memory_used / 1024)) : "-" }} MB
|
||||
</div>
|
||||
</x-simple-card>
|
||||
<x-simple-card class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
||||
<span class="text-center lg:text-left">Free Memory</span>
|
||||
<div class="text-center text-xl font-bold text-gray-600 dark:text-gray-400 lg:text-right">
|
||||
{{ $lastMetric ? Number::format($lastMetric->memory_free / 1024, 0) : "-" }} MB
|
||||
{{ $lastMetric ? number_format((int) ($lastMetric->memory_free / 1024)) : "-" }} MB
|
||||
</div>
|
||||
</x-simple-card>
|
||||
</div>
|
||||
@ -83,19 +83,19 @@ class="h-[200px] !p-0"
|
||||
<x-simple-card class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
||||
<span class="text-center lg:text-left">Total Space</span>
|
||||
<div class="text-center text-xl font-bold text-gray-600 dark:text-gray-400 lg:text-right">
|
||||
{{ $lastMetric ? Number::format($lastMetric->disk_total) : "-" }} MB
|
||||
{{ $lastMetric ? number_format($lastMetric->disk_total) : "-" }} MB
|
||||
</div>
|
||||
</x-simple-card>
|
||||
<x-simple-card class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
||||
<span class="text-center lg:text-left">Used Space</span>
|
||||
<div class="text-center text-xl font-bold text-gray-600 dark:text-gray-400 lg:text-right">
|
||||
{{ $lastMetric ? Number::format($lastMetric->disk_used) : "-" }} MB
|
||||
{{ $lastMetric ? number_format($lastMetric->disk_used) : "-" }} MB
|
||||
</div>
|
||||
</x-simple-card>
|
||||
<x-simple-card class="grid grid-cols-1 gap-4 lg:grid-cols-2">
|
||||
<span class="text-center lg:text-left">Free Space</span>
|
||||
<div class="text-center text-xl font-bold text-gray-600 dark:text-gray-400 lg:text-right">
|
||||
{{ $lastMetric ? Number::format($lastMetric->disk_free) : "-" }} MB
|
||||
{{ $lastMetric ? number_format($lastMetric->disk_free) : "-" }} MB
|
||||
</div>
|
||||
</x-simple-card>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user