*** empty log message ***

svn path=/trunk/boinc/; revision=3300
This commit is contained in:
Rom Walton 2004-04-27 14:37:36 +00:00
parent 5fe2c1d78b
commit cb4b14f28a
1 changed files with 6 additions and 3 deletions

View File

@ -128,7 +128,6 @@ bool HOST_INFO::host_is_running_on_batteries() {
&apm_flags,
&apm_ac_line_status
);
fclose(fapm);
retval = (apm_ac_line_status == 0);
} else {
@ -162,12 +161,16 @@ bool HOST_INFO::host_is_running_on_batteries() {
retval = (strstr(buf, "off") != NULL);
break;
}
fclose(facpi);
}
}
}
if (fapm)
fclose(fapm);
if (facpi)
fclose(facpi);
return retval;
#else
return false;