Disk [IRIX]: Fewer LoCs

This commit is contained in:
Muhammad Herdiansyah 2017-05-24 11:42:38 +07:00
parent 86b309aeef
commit b88e86e856

View file

@ -1840,13 +1840,8 @@ get_disk() {
disk_perc="${disk_info[4]/'%'}"
case "$df_version" in
*"befhikm"*)
disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)"
;;
*)
disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)"
;;
*"befhikm"*) disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)" ;;
*) disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" ;;
esac
# Subtitle.