Commit 92c11002 authored by Dylan Araps's avatar Dylan Araps

Merge branch 'master' of github.com:dylanaraps/neofetch

parents 688bcd6e 76d6fefe
...@@ -395,6 +395,7 @@ get_uptime() { ...@@ -395,6 +395,7 @@ get_uptime() {
d="0" h="0" d="0" h="0"
case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac
case "$t" in *":"*":"*) h="${t%%:*}"; t="${t#*:}";; esac case "$t" in *":"*":"*) h="${t%%:*}"; t="${t#*:}";; esac
h="${h#0}" t="${t#0}"
seconds="$((d*86400 + h*3600 + ${t%%:*}*60 + ${t#*:}))" seconds="$((d*86400 + h*3600 + ${t%%:*}*60 + ${t#*:}))"
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment