mirror of https://github.com/BOINC/boinc.git
- client: a couple of more clock-change fixes
This commit is contained in:
parent
9481e04e7b
commit
702798b84b
|
@ -768,7 +768,7 @@ bool ACTIVE_TASK_SET::check_rsc_limits_exceeded() {
|
|||
//
|
||||
double min_interval = gstate.global_prefs.disk_interval;
|
||||
if (min_interval < 300) min_interval = 300;
|
||||
if (gstate.now > last_disk_check_time + min_interval) {
|
||||
if (gstate.clock_change || gstate.now > last_disk_check_time + min_interval) {
|
||||
do_disk_check = true;
|
||||
}
|
||||
for (i=0; i<active_tasks.size(); i++) {
|
||||
|
|
|
@ -731,7 +731,7 @@ bool CLIENT_STATE::schedule_cpus() {
|
|||
// (meaning a new result is available, or a CPU has been freed).
|
||||
//
|
||||
elapsed_time = now - last_reschedule;
|
||||
if (elapsed_time >= CPU_SCHED_PERIOD) {
|
||||
if (gstate.clock_change || elapsed_time >= CPU_SCHED_PERIOD) {
|
||||
request_schedule_cpus("periodic CPU scheduling");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue