Disk : add -P option to df command for POSIX output format if disk mounts have long names #27

This commit is contained in:
ShevAbam 2016-01-08 14:13:51 +01:00
parent 8e4aaf99de
commit ff936fc670

View File

@ -4,7 +4,7 @@ $Config = new Config();
$datas = array(); $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( $datas[] = array(
'total' => 'N.A', 'total' => 'N.A',