Disk [IRIX]: Added support
This commit is contained in:
parent
d0cb265517
commit
928bb6296d
4
neofetch
4
neofetch
|
@ -1808,7 +1808,7 @@ get_disk() {
|
||||||
case "$df_version" in
|
case "$df_version" in
|
||||||
*"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku
|
*"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
|
*"recognized flag"*) df_flags=(-P -g) ;; # AIX, untested
|
||||||
# IRIX unknown
|
*"befhikm"*) df_flags=(-P -k) ;; # IRIX
|
||||||
*) df_flags=(-P -h) ;;
|
*) df_flags=(-P -h) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -1829,7 +1829,7 @@ get_disk() {
|
||||||
disk_perc="${disk_info[4]/'%'}"
|
disk_perc="${disk_info[4]/'%'}"
|
||||||
|
|
||||||
case "$df_version" in
|
case "$df_version" in
|
||||||
"IRIX") # To be changed
|
*"befhikm"*)
|
||||||
disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)"
|
disk="$((disk_info[2]/1024/1024))G / $((disk_info[2]/1024/1024))G (${disk_perc}%)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in New Issue