mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-21 19:57:59 +01:00
Better disk output
This commit is contained in:
parent
ca711550d1
commit
43b51b408d
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ function ponyget_Disk()
|
|||
{
|
||||
local dfoption=$FSTYPE
|
||||
[ "$dfoption" ] && dfoption="-t $FSTYPE"
|
||||
local diskusage=$(df -lh $dfoption --total | tail -n 1 | sed -r "s/ +/\t/g" )
|
||||
local diskusage=$(df -lh $dfoption -x overlay -x tmpfs -x devtmpfs --total | tail -n 1 | sed -r "s/ +/\t/g" )
|
||||
local used=$(echo "$diskusage" | cut -f 3)
|
||||
local total=$(echo "$diskusage" | cut -f 2)
|
||||
local percent=$(echo "$diskusage" | cut -f 5 | sed s/%// )
|
||||
|
|
Loading…
Reference in a new issue