Uptime: Remove 'up'

This commit is contained in:
Dylan Araps 2016-10-27 09:45:55 +11:00
parent d5a16ee13e
commit 63198a2209
1 changed files with 1 additions and 3 deletions

View File

@ -321,19 +321,17 @@ getuptime() {
uptime="${days:+$days, }${hours:+$hours, }${minutes}"
uptime="${uptime%', '}"
uptime="up ${uptime:-${seconds} seconds}"
uptime="${uptime:-${seconds} seconds}"
# Make the output of uptime smaller.
case "$uptime_shorthand" in
"on")
uptime="${uptime/up }"
uptime="${uptime/minutes/mins}"
uptime="${uptime/minute/min}"
uptime="${uptime/seconds/secs}"
;;
"tiny")
uptime="${uptime/up }"
uptime="${uptime/ days/d}"
uptime="${uptime/ day/d}"
uptime="${uptime/ hours/h}"