Add seconds when uptime is below 1 min
This commit is contained in:
parent
c2e6f6534d
commit
99d43ff257
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -307,8 +307,9 @@ getuptime() {
|
|||
"1 minutes") minutes="${minutes/s}" ;;
|
||||
esac
|
||||
|
||||
uptime="up ${days:+$days,} ${hours:+$hours,} ${minutes}"
|
||||
uptime="${days:+$days, }${hours:+$hours, }${minutes}"
|
||||
uptime="${uptime%', '}"
|
||||
uptime="up ${uptime:-${seconds} seconds}"
|
||||
;;
|
||||
|
||||
"Solaris")
|
||||
|
|
Loading…
Reference in a new issue