neofetch: Fix uptime seconds on Linux. Closes #1422
This commit is contained in:
parent
87827df455
commit
e960c51686
2
neofetch
2
neofetch
|
@ -1396,7 +1396,7 @@ get_uptime() {
|
||||||
|
|
||||||
uptime=${d:+$d, }${h:+$h, }$m
|
uptime=${d:+$d, }${h:+$h, }$m
|
||||||
uptime=${uptime%', '}
|
uptime=${uptime%', '}
|
||||||
uptime=${uptime:-$seconds secs}
|
uptime=${uptime:-$s secs}
|
||||||
|
|
||||||
# Make the output of uptime smaller.
|
# Make the output of uptime smaller.
|
||||||
case $uptime_shorthand in
|
case $uptime_shorthand in
|
||||||
|
|
Reference in New Issue