mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2024-11-15 21:01:46 -05:00
do not remove spaces from the mount point names
This commit is contained in:
parent
d5b01fd63d
commit
a879c6d95f
@ -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);
|
||||
echo json_encode($datas);
|
||||
|
Loading…
Reference in New Issue
Block a user