mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2025-07-03 17:35:15 -04:00
Merge pull request #7 from Wohlraj/df-space-fix
Fixes issue with spaces in filesystem name.
This commit is contained in:
commit
8bc4826552
@ -5,7 +5,7 @@ $Config = new Config();
|
|||||||
|
|
||||||
$datas = array();
|
$datas = array();
|
||||||
|
|
||||||
if (!(exec('/bin/df -T | tail -n +2 | awk \'{print $2","$3","$4","$5","$6","$7}\'', $df)))
|
if (!(exec('/bin/df -T | awk -v c=`/bin/df -T | grep -bo "Type" | awk -F: \'{print $1}\'` \'{print substr($0,c);}\' | tail -n +2 | awk \'{print $1","$2","$3","$4","$5","$6}\'', $df)))
|
||||||
{
|
{
|
||||||
$datas[] = array(
|
$datas[] = array(
|
||||||
'total' => 'N.A',
|
'total' => 'N.A',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user