Merge pull request #325 from konimex/android2

Fixed Android uptime
This commit is contained in:
Dylan Araps 2016-09-01 20:17:15 +10:00 committed by GitHub
commit 3ee96ef583

View file

@ -242,9 +242,9 @@ getuptime() {
"Android"*)
uptime=$(uptime | awk -F ' up' '{print $2}')
time="${time//[0-9] user*}"
time="${time//load average*}"
time="${time%,*} ${time##*,}"
uptime="${uptime//[0-9] user*}"
uptime="${uptime//load average*}"
uptime="${uptime%,*} ${uptime##*,}"
;;
*)