Commit 97b82d46 authored by David Anderson's avatar David Anderson

- client: shuffle the startup code to avoid showing wrong prefs info

    on first-time startup.
- client: don't do an RPC until we've done CPU benchmarks.
    We need the benchmark values to fill in app_version.flops

svn path=/trunk/boinc/; revision=17404
parent fc94fa86
......@@ -2307,3 +2307,13 @@ David 26 Feb 2009
cpu_sched.cpp
sched/
handle_request.cpp
David 26 Feb 2009
- client: shuffle the startup code to avoid showing wrong prefs info
on first-time startup.
- client: don't do an RPC until we've done CPU benchmarks.
We need the benchmark values to fill in app_version.flops
client/
client_state.cpp
cs_scheduler.cpp
......@@ -242,6 +242,7 @@ int CLIENT_STATE::init() {
//
check_anonymous();
host_info.clear_host_info();
host_info.get_host_info();
set_ncpus();
show_host_info();
......@@ -262,7 +263,6 @@ int CLIENT_STATE::init() {
coproc_cuda = (COPROC_CUDA*)coprocs.lookup("CUDA");
}
host_info.clear_host_info();
cpu_benchmarks_set_defaults(); // for first time, make sure p_fpops nonzero
// Parse the client state file,
......
......@@ -345,6 +345,11 @@ bool CLIENT_STATE::scheduler_rpc_poll() {
break;
}
// If we haven't run benchmarks yet, don't do a scheduler RPC.
// We need to know CPU speed to handle app versions
//
if (!host_info.p_calculated) return false;
// check for various reasons to contact particular projects.
// If we need to contact a project,
// see if we should ask it for work as well.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment