Remove regex matching from disk usage

This commit is contained in:
Dylan Araps 2016-06-14 17:02:14 +10:00
parent 296c0d7e61
commit 50ff116b64
1 changed files with 2 additions and 2 deletions

View File

@ -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