Fix errors on large uptimes
This commit is contained in:
parent
fb7b3c146e
commit
c2e6f6534d
6
neofetch
6
neofetch
|
@ -288,9 +288,9 @@ getuptime() {
|
|||
;;
|
||||
esac
|
||||
|
||||
days="$((seconds / 86400)) days"
|
||||
hours="$((seconds / 3600)) hours"
|
||||
minutes="$((seconds % 3600 / 60)) minutes"
|
||||
days="$((seconds / 60 / 60 / 24)) days"
|
||||
hours="$((seconds / 60 / 60 % 24)) hours"
|
||||
minutes="$((seconds / 60 % 60)) minutes"
|
||||
|
||||
case "$days" in
|
||||
"0 days") unset days ;;
|
||||
|
|
Reference in New Issue