Disk: Fix progress bars
This commit is contained in:
parent
5d9901b34e
commit
b2e8c33c3d
1 changed files with 2 additions and 0 deletions
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" ]] && \
|
||||||
|
|
Loading…
Reference in a new issue