From 8ebe90fbe3314729b3d58197e8a3da80fa7edeaf Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 26 Mar 2012 20:28:23 +0000 Subject: [PATCH] - client: report results if CPU suspend pending in next 30 min svn path=/trunk/boinc/; revision=25492 --- checkin_notes | 6 ++++++ client/cs_scheduler.cpp | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 82653f1c43..7d585a37f6 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3048,3 +3048,9 @@ David 26 Mar 2012 sched/ sched_version.cpp + +David 26 Mar 2012 + - client: report results if CPU suspend pending in next 30 min + + client/ + cs_scheduler.cpp diff --git a/client/cs_scheduler.cpp b/client/cs_scheduler.cpp index cb10199f7f..259a57bf85 100644 --- a/client/cs_scheduler.cpp +++ b/client/cs_scheduler.cpp @@ -440,8 +440,9 @@ bool CLIENT_STATE::scheduler_rpc_poll() { // report overdue results // - bool network_suspend_soon = global_prefs.net_times.suspended(now + 1800); - p = find_project_with_overdue_results(network_suspend_soon); + bool suspend_soon = global_prefs.net_times.suspended(now + 1800); + suspend_soon |= global_prefs.cpu_times.suspended(now + 1800); + p = find_project_with_overdue_results(suspend_soon); if (p && !actively_uploading(p)) { work_fetch.compute_work_request(p); scheduler_op->init_op_project(p, RPC_REASON_RESULTS_DUE);