Disk: Fix progress bars

This commit is contained in:
Dylan Araps 2016-12-17 00:25:58 +11:00
parent 5d9901b34e
commit b2e8c33c3d
1 changed files with 2 additions and 0 deletions

View File

@ -1552,6 +1552,8 @@ get_disk() {
# Convert Terabytes to Gigabytes.
if [[ "$disk_display" != "off" ]]; then
disk_used="${disk_used/\.}"
disk_used="${disk_used/G}"
disk_total="${disk_total/G}"
disk_total="${disk_total/\.}"
[[ "${disk_used: -1}" == "T" ]] && \