aboutsummaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorNicolas LLOBERA <nllobera@gmail.com>2017-03-20 17:47:42 +0100
committerNicolas LLOBERA <nllobera@gmail.com>2017-03-20 17:47:42 +0100
commita879c6d95fe57ac38a736016715cf146eb7f74af (patch)
tree2ebcb7a0b0b6aaa8d6c4fb067f9579e68f78ec61 /libs
parentd5b01fd63d60ebd29680c002331262ff72601cbb (diff)
do not remove spaces from the mount point names
Diffstat (limited to 'libs')
-rw-r--r--libs/disk.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/disk.php b/libs/disk.php
index 80fedc7..0cf9587 100644
--- a/libs/disk.php
+++ b/libs/disk.php
@@ -4,7 +4,7 @@ $Config = new Config();
$datas = array();
-if (!(exec('/bin/df -T -P | sed -e \'s/[ \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',
@@ -52,4 +52,4 @@ else
}
-echo json_encode($datas); \ No newline at end of file
+echo json_encode($datas);