Disk [IRIX]: Added support

This commit is contained in:
Muhammad Herdiansyah 2017-05-16 14:47:35 +07:00
parent d0cb265517
commit 928bb6296d

View file

@ -1808,7 +1808,7 @@ get_disk() {
case "$df_version" in
*"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku
*"recognized flag"*) df_flags=(-P -g) ;; # AIX, untested
# IRIX unknown
*"befhikm"*) df_flags=(-P -k) ;; # IRIX
*) df_flags=(-P -h) ;;
esac
@ -1829,7 +1829,7 @@ get_disk() {
disk_perc="${disk_info[4]/'%'}"
case "$df_version" in
"IRIX") # To be changed
*"befhikm"*)
disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)"
;;