Commit 50ff116b authored by Dylan Araps's avatar Dylan Araps

Remove regex matching from disk usage

parent 296c0d7e
...@@ -1822,10 +1822,10 @@ getdisk () { ...@@ -1822,10 +1822,10 @@ getdisk () {
disk_used="${disk_used/\.}" disk_used="${disk_used/\.}"
disk_total="${disk_total/\.}" disk_total="${disk_total/\.}"
[[ "$disk_used" == *"T" ]] && \ [ "${disk_used: -1}" == "T" ] && \
disk_used="$((${disk_used/T} * 100))" disk_used="$((${disk_used/T} * 100))"
[[ "$disk_total" == *"T" ]] && \ [ "${disk_total: -1}" == "T" ] && \
disk_total="$((${disk_total/T} * 100))" disk_total="$((${disk_total/T} * 100))"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment