mirror of https://github.com/BOINC/boinc.git
client: Use explicit battery state code with same value (0)
This commit is contained in:
parent
3ee78d64ec
commit
0310960571
|
@ -1544,7 +1544,7 @@ int HOST_INFO::get_host_battery_state() {
|
|||
SYSTEM_POWER_STATUS Status;
|
||||
ZeroMemory(&Status, sizeof(SYSTEM_POWER_STATUS));
|
||||
if (!GetSystemPowerStatus(&Status)) {
|
||||
return false;
|
||||
return BATTERY_STATE_UNKNOWN;
|
||||
}
|
||||
|
||||
// Sometimes the system reports the ACLineStatus as an
|
||||
|
|
Loading…
Reference in New Issue