Fix error with hours

This commit is contained in:
Dylan 2016-04-29 09:54:02 +10:00
parent a2712b6333
commit bef0e37984
1 changed files with 1 additions and 5 deletions

View File

@ -590,15 +590,11 @@ getuptime () {
hours=$((uptime / 3600%24))
days=$((uptime / 86400))
echo "$mins"
echo "$hours"
echo "$days"
days="$days days,"
hours="$hours hours,"
mins="$mins minutes"
uptime="up ${days/0 days,} ${hours/ 0 hours,} ${mins/0 mins}"
uptime="up ${days/0 days,} ${hours/0 hours,} ${mins/0 mins}"
;;
esac