Fix error with hours
This commit is contained in:
parent
a2712b6333
commit
bef0e37984
6
neofetch
6
neofetch
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue