Skip to content

Commit

Permalink
Disk : add -P option to df command for POSIX output format if disk mo…
Browse files Browse the repository at this point in the history
…unts have long names #27
  • Loading branch information
shevabam committed Jan 8, 2016
1 parent 8e4aaf9 commit ff936fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/disk.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

$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',
Expand Down

0 comments on commit ff936fc

Please sign in to comment.