Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #325 from konimex/android2
Browse files Browse the repository at this point in the history
Fixed Android uptime
  • Loading branch information
dylanaraps authored Sep 1, 2016
2 parents f3a9074 + 444c860 commit 3ee96ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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##*,}"
;;

*)
Expand Down

0 comments on commit 3ee96ef

Please sign in to comment.