Skip to content

Commit 05481a4

Browse files
author
Marius Cramer
committed
Implemented: FS#3010 - Remove mount --bind lines from df output in monitor
1 parent b41dfdd commit 05481a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/lib/classes/cron.d/100-monitor_disk_usage.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ public function onRunJob() {
7373
//$dfData = shell_exec('df -hT 2>/dev/null');
7474
$app->uses('getconf');
7575
$web_config = $app->getconf->get_server_config($conf['server_id'], 'web');
76-
$dfData = shell_exec('df -hT|grep -v "'.$web_config['website_basedir'].'/" 2>/dev/null');
77-
76+
77+
$dfData = shell_exec('df -hT -x simfs | awk \'!x[$1]++\' 2>/dev/null');
78+
7879
// split into array
7980
$df = explode("\n", $dfData);
8081

0 commit comments

Comments
 (0)