Fixed Android uptime

This commit is contained in:
Muhammad Herdiansyah 2016-08-30 23:13:59 +07:00
parent f3a907458f
commit 444c860e61
1 changed files with 3 additions and 3 deletions

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