From 0f97e834592f629822fb47ac494f0bd02e9a8c65 Mon Sep 17 00:00:00 2001 From: Hugues Granger Date: Tue, 21 Oct 2014 00:08:49 +0200 Subject: Fixes issue with spaces in filesystem name. --- libs/disk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/disk.php b/libs/disk.php index 811b0b8..e897818 100644 --- a/libs/disk.php +++ b/libs/disk.php @@ -5,7 +5,7 @@ $Config = new Config(); $datas = array(); -if (!(exec('/bin/df -T | tail -n +2 | awk \'{print $2","$3","$4","$5","$6","$7}\'', $df))) +if (!(exec('/bin/df -T | awk -v c=`/bin/df -T | grep -bo "Type" | awk -F: \'{print $1}\'` \'{print substr($0,c);}\' | tail -n +2 | awk \'{print $1","$2","$3","$4","$5","$6}\'', $df))) { $datas[] = array( 'total' => 'N.A', -- cgit v1.2.3