diff options
author | ShevAbam <shevabam@gmail.com> | 2016-01-08 14:13:51 +0100 |
---|---|---|
committer | ShevAbam <shevabam@gmail.com> | 2016-01-08 14:13:51 +0100 |
commit | ff936fc670f65adae9ec5b2d29cac05272502265 (patch) | |
tree | fd7ce0dbb0345a2b16474e908f4aff2e2a10dc06 | |
parent | 8e4aaf99de36987b572ca2b5f138b270f5d53f52 (diff) |
Disk : add -P option to df command for POSIX output format if disk mounts have long names #27
-rw-r--r-- | libs/disk.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/disk.php b/libs/disk.php index f2b21cb..8760816 100644 --- a/libs/disk.php +++ b/libs/disk.php @@ -4,7 +4,7 @@ $Config = new Config(); $datas = array(); -if (!(exec('/bin/df -T | awk -v c=`/bin/df -T | grep -bo "Type" | awk -F: \'{print $2}\'` \'{print substr($0,c);}\' | tail -n +2 | awk \'{print $1","$2","$3","$4","$5","$6","$7}\'', $df))) +if (!(exec('/bin/df -T -P | awk -v c=`/bin/df -T | grep -bo "Type" | awk -F: \'{print $2}\'` \'{print substr($0,c);}\' | tail -n +2 | awk \'{print $1","$2","$3","$4","$5","$6","$7}\'', $df))) { $datas[] = array( 'total' => 'N.A', |