From 43e72c974ddeb4d920405494ea6fde8b6c0be564 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 27 Aug 2024 14:34:41 -0600 Subject: [PATCH] Fix the disk usage for FreeBSD --- app/system/resources/dashboard/system_status.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/system/resources/dashboard/system_status.php b/app/system/resources/dashboard/system_status.php index d194a72165..02135183ea 100644 --- a/app/system/resources/dashboard/system_status.php +++ b/app/system/resources/dashboard/system_status.php @@ -26,7 +26,7 @@ //disk usage if (PHP_OS == 'FreeBSD' || PHP_OS == 'Linux') { - $tmp = shell_exec("df /home 2>&1"); + $tmp = shell_exec("df / 2>&1"); $tmp = explode("\n", $tmp); $tmp = preg_replace('!\s+!', ' ', $tmp[1]); // multiple > single space $tmp = explode(' ', $tmp); @@ -231,4 +231,5 @@ echo ""; } echo "\n"; + ?>