update df command parameter

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2017-08-18 00:00:05 +09:00
parent dbe6673200
commit 2f9e5adf13
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -104,8 +104,8 @@ arch=$( uname -m )
lbit=$( getconf LONG_BIT ) lbit=$( getconf LONG_BIT )
kern=$( uname -r ) kern=$( uname -r )
ipv6=$( wget -qO- -t1 -T2 ipv6.icanhazip.com ) ipv6=$( wget -qO- -t1 -T2 ipv6.icanhazip.com )
disk_size1=($( LANG=C df -ahPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem' | awk '{print $2}' )) disk_size1=($( LANG=C df -hPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem' | awk '{print $2}' ))
disk_size2=($( LANG=C df -ahPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem' | awk '{print $3}' )) disk_size2=($( LANG=C df -hPl | grep -wvE '\-|none|tmpfs|devtmpfs|by-uuid|chroot|Filesystem' | awk '{print $3}' ))
disk_total_size=$( calc_disk ${disk_size1[@]} ) disk_total_size=$( calc_disk ${disk_size1[@]} )
disk_used_size=$( calc_disk ${disk_size2[@]} ) disk_used_size=$( calc_disk ${disk_size2[@]} )