mirror of https://github.com/BOINC/boinc.git
Client fixes from Walt Gribben. Do regular checks for drive free
space. And retrieve host info after call that reads client_state.xml has wiped it out. svn path=/trunk/boinc/; revision=7217
This commit is contained in:
parent
b36fef1e87
commit
5e3f8ca4be
|
@ -10161,3 +10161,13 @@ David 9 Aug 2005
|
|||
gui_rpc_client.h
|
||||
gui_rpc_client_ops.C
|
||||
gui_rpc_client_print.C
|
||||
|
||||
Bruce 9 August 2005
|
||||
- Client fixes from Walt Gribben. Do regular checks for drive free
|
||||
space. And retrieve host info after call that reads client_state.xml
|
||||
has wiped it out.
|
||||
|
||||
client/
|
||||
app_control.C
|
||||
client_state.C
|
||||
|
||||
|
|
|
@ -491,6 +491,7 @@ bool ACTIVE_TASK_SET::check_rsc_limits_exceeded() {
|
|||
else if (atp->check_max_mem_exceeded()) return true;
|
||||
else if (gstate.now>last_disk_check_time + gstate.global_prefs.disk_interval) {
|
||||
last_disk_check_time = gstate.now;
|
||||
get_filesystem_info(gstate.host_info.d_total, gstate.host_info.d_free);
|
||||
if (atp->check_max_disk_exceeded()) return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -281,6 +281,12 @@ int CLIENT_STATE::init() {
|
|||
//
|
||||
parse_state_file();
|
||||
|
||||
// parse_state_file wiped out the current host info, get it again
|
||||
//
|
||||
host_info.clear_host_info();
|
||||
host_info.get_host_info();
|
||||
set_ncpus();
|
||||
|
||||
// Check to see if we can write the state file.
|
||||
//
|
||||
retval = write_state_file();
|
||||
|
|
Loading…
Reference in New Issue