mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3300
This commit is contained in:
parent
5fe2c1d78b
commit
cb4b14f28a
|
@ -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,11 +161,15 @@ bool HOST_INFO::host_is_running_on_batteries() {
|
|||
retval = (strstr(buf, "off") != NULL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (fapm)
|
||||
fclose(fapm);
|
||||
|
||||
if (facpi)
|
||||
fclose(facpi);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return retval;
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue