From e2dd9177f73637185dff27cdb87f89eb06a2c8c0 Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Wed, 17 Apr 2024 22:08:19 +0200 Subject: [PATCH] fix number format --- resources/views/metrics/index.blade.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/views/metrics/index.blade.php b/resources/views/metrics/index.blade.php index b7bd6744..e60a8f66 100644 --- a/resources/views/metrics/index.blade.php +++ b/resources/views/metrics/index.blade.php @@ -63,19 +63,19 @@ class="h-[200px] !p-0" Total Memory
- {{ $lastMetric ? Number::format($lastMetric->memory_total / 1024, 0) : "-" }} MB + {{ $lastMetric ? number_format((int) ($lastMetric->memory_total / 1024)) : "-" }} MB
Used Memory
- {{ $lastMetric ? Number::format($lastMetric->memory_used / 1024, 0) : "-" }} MB + {{ $lastMetric ? number_format((int) ($lastMetric->memory_used / 1024)) : "-" }} MB
Free Memory
- {{ $lastMetric ? Number::format($lastMetric->memory_free / 1024, 0) : "-" }} MB + {{ $lastMetric ? number_format((int) ($lastMetric->memory_free / 1024)) : "-" }} MB
@@ -83,19 +83,19 @@ class="h-[200px] !p-0" Total Space
- {{ $lastMetric ? Number::format($lastMetric->disk_total) : "-" }} MB + {{ $lastMetric ? number_format($lastMetric->disk_total) : "-" }} MB
Used Space
- {{ $lastMetric ? Number::format($lastMetric->disk_used) : "-" }} MB + {{ $lastMetric ? number_format($lastMetric->disk_used) : "-" }} MB
Free Space
- {{ $lastMetric ? Number::format($lastMetric->disk_free) : "-" }} MB + {{ $lastMetric ? number_format($lastMetric->disk_free) : "-" }} MB