Change mins to minutes
This commit is contained in:
parent
9b6e7782dc
commit
11d80dd284
1 changed files with 4 additions and 4 deletions
8
neofetch
8
neofetch
|
@ -586,14 +586,14 @@ getuptime () {
|
||||||
uptime=$((now - boot))
|
uptime=$((now - boot))
|
||||||
|
|
||||||
# Convert uptime to days/hours/mins
|
# Convert uptime to days/hours/mins
|
||||||
mins=$((uptime / 60%60))
|
minutes=$((uptime / 60%60))
|
||||||
hours=$((uptime / 3600%24))
|
hours=$((uptime / 3600%24))
|
||||||
days=$((uptime / 86400))
|
days=$((uptime / 86400))
|
||||||
|
|
||||||
case "$mins" in
|
case "$minutes" in
|
||||||
1) mins="1 minute" ;;
|
1) minutes="1 minute" ;;
|
||||||
0) ;;
|
0) ;;
|
||||||
*) mins="$mins minutes" ;;
|
*) minutes="$minutes minutes" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$hours" in
|
case "$hours" in
|
||||||
|
|
Loading…
Reference in a new issue