Fix error with hours
This commit is contained in:
parent
a2712b6333
commit
bef0e37984
1 changed files with 1 additions and 5 deletions
6
neofetch
6
neofetch
|
@ -590,15 +590,11 @@ getuptime () {
|
||||||
hours=$((uptime / 3600%24))
|
hours=$((uptime / 3600%24))
|
||||||
days=$((uptime / 86400))
|
days=$((uptime / 86400))
|
||||||
|
|
||||||
echo "$mins"
|
|
||||||
echo "$hours"
|
|
||||||
echo "$days"
|
|
||||||
|
|
||||||
days="$days days,"
|
days="$days days,"
|
||||||
hours="$hours hours,"
|
hours="$hours hours,"
|
||||||
mins="$mins minutes"
|
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
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue