Remove regex matching from disk usage
This commit is contained in:
parent
296c0d7e61
commit
50ff116b64
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -1822,10 +1822,10 @@ getdisk () {
|
|||
disk_used="${disk_used/\.}"
|
||||
disk_total="${disk_total/\.}"
|
||||
|
||||
[[ "$disk_used" == *"T" ]] && \
|
||||
[ "${disk_used: -1}" == "T" ] && \
|
||||
disk_used="$((${disk_used/T} * 100))"
|
||||
|
||||
[[ "$disk_total" == *"T" ]] && \
|
||||
[ "${disk_total: -1}" == "T" ] && \
|
||||
disk_total="$((${disk_total/T} * 100))"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue