Disk [IRIX]: Fewer LoCs
This commit is contained in:
parent
86b309aeef
commit
b88e86e856
9
neofetch
9
neofetch
|
@ -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.
|
||||
|
|
Reference in New Issue