- client: show est CPC time of jobs returned by sched RPC,

if sched_op_debug; fixes #256

svn path=/trunk/boinc/; revision=16149
This commit is contained in:
David Anderson 2008-10-07 01:51:30 +00:00
parent 7b53ee40f1
commit 7512f94f51
2 changed files with 16 additions and 0 deletions

View File

@ -8125,3 +8125,10 @@ David 6 Oct 2008
samples/example_app/
Makefile
Makefile.debian (deleted)
David 6 Oct 2008
- client: show est CPC time of jobs returned by sched RPC,
if sched_op_debug; fixes #256
client/
cs_scheduler.cpp

View File

@ -412,6 +412,15 @@ int CLIENT_STATE::handle_scheduler_reply(
msg_printf(project, MSG_INFO, "Scheduler request completed: got %d new tasks", (int)sr.results.size());
}
if (log_flags.sched_op_debug) {
if (sr.results.size()) {
double x = 0;
for (i=0; i<sr.results.size(); i++) {
x += sr.results[i].estimated_cpu_time(false);
}
msg_printf(project, MSG_INFO,
"[sched_ops_debug] estimated total CPU time: %.0f seconds", x
);
}
if (sr.scheduler_version) {
msg_printf(project, MSG_INFO,
"[sched_ops_debug] Server version %d",