Open mkoakintomiwa opened 4 years ago
Hi, @mkoakintomiwa!
Without knowing current energy rate it is impossible to calculate time_to_full
and time_to_empty
values (and it goes to zero because of #63 fix).
It seems that you are hitting the following case from the BATTERY_STATUS
structure documentation at MSDN and your battery driver can't report it:
Rate
If the rate is unavailable, this member is
BATTERY_UNKNOWN_RATE
. If the state of the battery or power source changes, the rate may become available.
I'm not actually sure if that's a case, because I can't reproduce your problem so far, so it is hard to say what the exact issue.
Yet, it seems that another option to fetch this information is to query the BatteryEstimatedTime
value and use it instead.
Let me try to write a fix and maybe we will try to test it later then?
Okay @svartalf , that is fine by me. I will wait for the fix. Thanks alot.
Operating system:
windows
First of all, Thanks for always being there svartalf. Please help me with this one too.I got