Disk [IRIX]: Added support
This commit is contained in:
parent
d0cb265517
commit
928bb6296d
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -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}%)"
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue