summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshevabam <shevabam@users.noreply.github.com>2014-10-21 09:55:11 +0200
committershevabam <shevabam@users.noreply.github.com>2014-10-21 09:55:11 +0200
commit8bc4826552afb39c36abf09201461a119b81d4bf (patch)
tree3983cd3011e37c0172564a078ac01303c18d6bcf
parentd329cc43a9cfe55c2d1f67f93cf190385ddaea6a (diff)
parent0f97e834592f629822fb47ac494f0bd02e9a8c65 (diff)
Merge pull request #7 from Wohlraj/df-space-fix
Fixes issue with spaces in filesystem name.
-rw-r--r--libs/disk.php2
1 files changed, 1 insertions, 1 deletions
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',