aboutsummaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorNicolas LLOBERA <nllobera@gmail.com>2017-03-21 16:31:13 +0100
committerNicolas LLOBERA <nllobera@gmail.com>2017-03-21 16:31:13 +0100
commit52a34fd25b709ed282b427290424a3a56342983b (patch)
tree9ef5d3286efacc0c0cb8a1296fcbacd28c258ee8 /libs
parent3aa15d98a9e44a9a99217c4957fa0044daf543a9 (diff)
fix the awk command
Diffstat (limited to 'libs')
-rw-r--r--libs/disk.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/disk.php b/libs/disk.php
index ebab6bc..b5ecfb4 100644
--- a/libs/disk.php
+++ b/libs/disk.php
@@ -6,7 +6,7 @@ $datas = array();
# if there are more than 7 awk's colums it means the mount point name contains spaces
# so consider the first colums as a unique colum and the last 6 as real colums
-if (!(exec('/bin/df -T -P | tail -n +2 | awk \'{ if (NF > 7) { for (i=1; i<NF-6; i++) { printf $i" "; } for (i=NF-6; i<NF; i++) { printf $i","; print $NF; } } else { print $1","$2","$3","$4","$5","$6","$7; } }\'', $df)))
+if (!(exec('/bin/df -T -P | tail -n +2 | awk \'{ if (NF > 7) { for (i=1; i<NF-6; i++) { printf $i" "; } for (i=NF-6; i<NF; i++) { printf $i","; } print $NF; } else { print $1","$2","$3","$4","$5","$6","$7; } }\'', $df)))
{
$datas[] = array(
'total' => 'N.A',