Revert fixes

This commit is contained in:
Dylan 2016-04-29 09:44:24 +10:00
parent f8c350cbff
commit 0a5e676b74
1 changed files with 9 additions and 9 deletions

View File

@ -591,22 +591,22 @@ getuptime () {
days=$((uptime / 86400)) days=$((uptime / 86400))
# Format the output like Linux's "uptime -p" cmd. # Format the output like Linux's "uptime -p" cmd.
if [ "$mins" != 0 ]; then if [ "$mins" == 1 ]; then
uptime="$mins minutes"
else
uptime="$mins minute" uptime="$mins minute"
elif [ "$mins" != 0 ]; then
uptime="$mins minutes"
fi fi
if [ "$mins" != 0 ]; then if [ "$hours" == 1 ]; then
uptime="$hours hours, $uptime"
else
uptime="$hours hour, $uptime" uptime="$hours hour, $uptime"
elif [ "$mins" != 0 ]; then
uptime="$hours hours, $uptime"
fi fi
if [ "$days" != 0 ]; then if [ "$days" == 1 ]; then
uptime="$days days, $uptime"
else
uptime="$days day, $uptime" uptime="$days day, $uptime"
elif [ "$days" != 0 ]; then
uptime="$days days, $uptime"
fi fi
uptime="up $uptime" uptime="up $uptime"