uptime: fix bug
This commit is contained in:
parent
1f035379ff
commit
acdfbe2063
1 changed files with 3 additions and 3 deletions
6
neofetch
6
neofetch
|
@ -1285,9 +1285,9 @@ get_uptime() {
|
|||
((${m/ *} == 1)) && m=${m/s}
|
||||
|
||||
# Hide empty fields.
|
||||
((${d/ *} == 0)) && unset days
|
||||
((${h/ *} == 0)) && unset hours
|
||||
((${m/ *} == 0)) && unset mins
|
||||
((${d/ *} == 0)) && unset d
|
||||
((${h/ *} == 0)) && unset h
|
||||
((${m/ *} == 0)) && unset m
|
||||
|
||||
uptime=${d:+$d, }${h:+$h, }$m
|
||||
uptime=${uptime%', '}
|
||||
|
|
Loading…
Reference in a new issue