lihaoyun6 / AirBattery

Get the battery usage of all your devices on your Mac and put them on the Dock / Menu Bar / Widget! && 在Mac上获取你所有设备的电量信息并显示在Dock / 状态栏 / 小组件上!

Home Page:https://lihaoyun6.github.io/airbattery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPU/Battery consumption

powext opened this issue · comments

Hi there,

I noticed that the app is constantly running and impacting the battery usage with a 58 score over 12 hours
CleanShot 2024-06-12 at 13 04 10
which is not that bad but I think could be improved, specially comparing it with other major applications.

Considering that i don't care about the very precise live battery level I think it would be great if users can somehow get the data just right after opening the app or read the most recent read (every x minutes). Or maybe is the constant scanning? I don't know the codebase.
Of course this can be eventually an option in the settings.
Maybe this is just a bug and I'm overhinking

image

Thanks for reminding me of this!!!
I was so busy adding new features to AirBattery that I forgot to optimize its power consumption.
5.3... OMG, this is crazy, something is wrong. It should be between 0.1 ~ 0.7

OK, I caught it. An incorrect TimeInterval made a Timer go crazy. I will fix this in the next version