jradavenport / batlog

1 Year of MacBook Air Battery Logs
BSD 2-Clause "Simplified" License
189 stars 35 forks source link

Make battest.sh more efficient #8

Closed jedberg closed 10 years ago

jedberg commented 10 years ago

I used egrep to reduce the number of times ioreg is called, which ironically reduces battery usage.

jradavenport commented 10 years ago

i think the load of two ioreg calls is minimal, but you're right. it is more efficient!