From e7266c21c18a8ab57d27ee94720ffb81b2095151 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Tue, 8 May 2018 13:53:03 +0200
Subject: [PATCH] Fixed #4944 Filesystem usage not show correctly when lvm
 logical volume is too long.

---
 server/lib/classes/cron.d/100-monitor_disk_usage.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/lib/classes/cron.d/100-monitor_disk_usage.inc.php b/server/lib/classes/cron.d/100-monitor_disk_usage.inc.php
index eb92c2de9d..1bae04cc52 100644
--- a/server/lib/classes/cron.d/100-monitor_disk_usage.inc.php
+++ b/server/lib/classes/cron.d/100-monitor_disk_usage.inc.php
@@ -74,7 +74,7 @@ class cronjob_monitor_disk_usage extends cronjob {
 		$app->uses('getconf');
 		$web_config = $app->getconf->get_server_config($conf['server_id'], 'web');
 		
-		$dfData = shell_exec('df -hT -x simfs | awk \'!x[$1]++\' 2>/dev/null');
+		$dfData = shell_exec('df -PhT -x simfs | awk \'!x[$1]++\' 2>/dev/null');
 		
 		// split into array
 		$df = explode("\n", $dfData);
-- 
GitLab