Disk: Fix progress bars
This commit is contained in:
parent
5d9901b34e
commit
b2e8c33c3d
2
neofetch
2
neofetch
|
@ -1552,6 +1552,8 @@ get_disk() {
|
||||||
# Convert Terabytes to Gigabytes.
|
# Convert Terabytes to Gigabytes.
|
||||||
if [[ "$disk_display" != "off" ]]; then
|
if [[ "$disk_display" != "off" ]]; then
|
||||||
disk_used="${disk_used/\.}"
|
disk_used="${disk_used/\.}"
|
||||||
|
disk_used="${disk_used/G}"
|
||||||
|
disk_total="${disk_total/G}"
|
||||||
disk_total="${disk_total/\.}"
|
disk_total="${disk_total/\.}"
|
||||||
|
|
||||||
[[ "${disk_used: -1}" == "T" ]] && \
|
[[ "${disk_used: -1}" == "T" ]] && \
|
||||||
|
|
Reference in New Issue