From 7512f94f5146d7659b23a8615aa07438133d5508 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 7 Oct 2008 01:51:30 +0000 Subject: [PATCH] - client: show est CPC time of jobs returned by sched RPC, if sched_op_debug; fixes #256 svn path=/trunk/boinc/; revision=16149 --- checkin_notes | 7 +++++++ client/cs_scheduler.cpp | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/checkin_notes b/checkin_notes index cda45b63b9..8cf764edab 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/cs_scheduler.cpp b/client/cs_scheduler.cpp index 9db6531fdf..406b4e8f84 100644 --- a/client/cs_scheduler.cpp +++ b/client/cs_scheduler.cpp @@ -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