Disk: Print filesystem type

This commit is contained in:
Dylan Araps 2016-12-16 22:54:16 +11:00
parent 4cf108015c
commit 17e9fa7774

View file

@ -1550,10 +1550,14 @@ get_disk() {
(( "${#disk_used}" == 6 )) && disk_used="${disk_used:0:1}.${disk_used:1:1}TB" (( "${#disk_used}" == 6 )) && disk_used="${disk_used:0:1}.${disk_used:1:1}TB"
(( "${#disk_total}" == 6 )) && disk_total="${disk_total:0:1}.${disk_total:1:1}TB" (( "${#disk_total}" == 6 )) && disk_total="${disk_total:0:1}.${disk_total:1:1}TB"
disk_total_per="${disks[11]}" # Get the filesystem type
disk_type="[$(awk '$2 == "/" {printf $3; exit}' /etc/fstab)]"
# Get the usage percentage
disk_total_per="(${disks[11]})"
# Put it all together # Put it all together
disk="${disk_used} / ${disk_total} (${disk_total_per})" disk="${disk_used} / ${disk_total} ${disk_total_per} ${disk_type}"
# Bar # Bar
case "$disk_display" in case "$disk_display" in