Fixed Android uptime

This commit is contained in:
Muhammad Herdiansyah 2016-08-30 23:13:59 +07:00
parent f3a907458f
commit 444c860e61

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##*,}"
;;
*)