Fix errors on large uptimes
This commit is contained in:
parent
fb7b3c146e
commit
c2e6f6534d
1 changed files with 3 additions and 3 deletions
6
neofetch
6
neofetch
|
@ -288,9 +288,9 @@ getuptime() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
days="$((seconds / 86400)) days"
|
days="$((seconds / 60 / 60 / 24)) days"
|
||||||
hours="$((seconds / 3600)) hours"
|
hours="$((seconds / 60 / 60 % 24)) hours"
|
||||||
minutes="$((seconds % 3600 / 60)) minutes"
|
minutes="$((seconds / 60 % 60)) minutes"
|
||||||
|
|
||||||
case "$days" in
|
case "$days" in
|
||||||
"0 days") unset days ;;
|
"0 days") unset days ;;
|
||||||
|
|
Loading…
Reference in a new issue