uptime: fix bug

This commit is contained in:
Dylan Araps 2019-10-28 13:14:06 +02:00
parent 1f035379ff
commit acdfbe2063
No known key found for this signature in database
GPG key ID: 46D62DD9F1DE636E

View file

@ -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%', '}