mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2024-12-22 01:20:58 -05:00
Disk : add -P option to df command for POSIX output format if disk mounts have long names #27
This commit is contained in:
parent
8e4aaf99de
commit
ff936fc670
@ -4,7 +4,7 @@ $Config = new Config();
|
|||||||
|
|
||||||
$datas = array();
|
$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(
|
$datas[] = array(
|
||||||
'total' => 'N.A',
|
'total' => 'N.A',
|
||||||
|
Loading…
Reference in New Issue
Block a user