Add seconds when uptime is below 1 min
This commit is contained in:
parent
c2e6f6534d
commit
99d43ff257
3
neofetch
3
neofetch
|
@ -307,8 +307,9 @@ getuptime() {
|
||||||
"1 minutes") minutes="${minutes/s}" ;;
|
"1 minutes") minutes="${minutes/s}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
uptime="up ${days:+$days,} ${hours:+$hours,} ${minutes}"
|
uptime="${days:+$days, }${hours:+$hours, }${minutes}"
|
||||||
uptime="${uptime%', '}"
|
uptime="${uptime%', '}"
|
||||||
|
uptime="up ${uptime:-${seconds} seconds}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Solaris")
|
"Solaris")
|
||||||
|
|
Reference in New Issue