Uptime fixes

This commit is contained in:
Dylan 2016-04-29 10:05:35 +10:00
parent 9871e65148
commit cec15d9fb2

View file

@ -594,7 +594,16 @@ getuptime () {
hours=" $hours hours,"
mins=" $mins minutes"
uptime="up${days/ 0 days,}${hours/ 0 hours,}${mins/ 0 minutes}"
days=${days/ 0 days,}
days=${days/ 1 days/ 1 day}
hours=${hours/ 0 hours,}
hours=${hours/ 1 hours/ 1 hour}
mins=${mins/ 0 minutes}
mins=${mins/ 1 minutes/ 1 minute}
uptime="up${days}${hours}${mins}"
;;
esac