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