Disk [IRIX]: Fewer LoCs
This commit is contained in:
parent
86b309aeef
commit
b88e86e856
1 changed files with 2 additions and 7 deletions
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.
|
||||
|
|
Loading…
Reference in a new issue