cjbassi / gotop

A terminal based graphical activity monitor inspired by gtop and vtop
GNU Affero General Public License v3.0
7.36k stars 436 forks source link

Battery percentage discrepancy - macOS #160

Closed damonallison closed 5 years ago

damonallison commented 5 years ago

The battery percentage shown in gotop differs from what macOS shows in the menu bar.

It does match the underlying distatus/battery value (bat.Current/bat.Full*100,) correctly. I'm not sure if there are any other options that would mimic the menu bar consistently (or if you'd even want to do that - the values from distatus/battery are more accurate).

Perhaps all that is needed is a comment in the documentation stating the difference.

Thanks for all your work w/ gotop!

battery-macos
whuang8 commented 5 years ago

I am seeing a 5% discrepancy on my mac as well. I think this issue might make more sense as an open distatus/battery issue rather than a gotop issue since we know gotop's battery percentage comes directly from the battery pkg.

damonallison commented 5 years ago

I agree. gotop is using the right values from battery. I'm going to close this issue, look into battery, and will file a ticket there as appropriate.