Change mins to minutes

This commit is contained in:
Dylan 2016-04-29 10:13:45 +10:00
parent 9b6e7782dc
commit 11d80dd284

View file

@ -586,14 +586,14 @@ getuptime () {
uptime=$((now - boot))
# Convert uptime to days/hours/mins
mins=$((uptime / 60%60))
minutes=$((uptime / 60%60))
hours=$((uptime / 3600%24))
days=$((uptime / 86400))
case "$mins" in
1) mins="1 minute" ;;
case "$minutes" in
1) minutes="1 minute" ;;
0) ;;
*) mins="$mins minutes" ;;
*) minutes="$minutes minutes" ;;
esac
case "$hours" in