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"*) "Android"*)
uptime=$(uptime | awk -F ' up' '{print $2}') uptime=$(uptime | awk -F ' up' '{print $2}')
time="${time//[0-9] user*}" uptime="${uptime//[0-9] user*}"
time="${time//load average*}" uptime="${uptime//load average*}"
time="${time%,*} ${time##*,}" uptime="${uptime%,*} ${uptime##*,}"
;; ;;
*) *)