From 5f24db9a1050658057a1f4b1becbee3f599dba71 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Sun, 30 May 2004 10:16:57 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3474 --- sched/handle_request.C | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sched/handle_request.C b/sched/handle_request.C index 575cef1c26..ad5e0cafd2 100644 --- a/sched/handle_request.C +++ b/sched/handle_request.C @@ -615,8 +615,9 @@ void process_request( PLATFORM* platform; int retval; double last_rpc_time; - struct tm *last_rpc_time_tm; struct tm *rpm_time_tm; + int last_rpc_dayofyear; + int current_rpc_dayofyear; bool ok_to_send = true; @@ -641,12 +642,14 @@ void process_request( } last_rpc_time = reply.host.rpc_time; - last_rpc_time_tm = localtime((const time_t*)&reply.host.rpc_time); + rpc_time_tm = localtime((const time_t*)&reply.host.rpc_time); + last_rpc_dayofyear = rpc_time_tm->tm_yday; reply.host.rpc_time = time(0); rpm_time_tm = localtime((const time_t*)&reply.host.rpc_time); + current_rpc_dayofyear = rpc_time_tm->tm_yday; - if (last_rpc_time_tm->tm_yday != rpm_time_tm->tm_yday) { + if (last_rpc_dayofyear != current_rpc_dayofyear) { reply.host.nresults_today = 0; } retval = modify_host_struct(sreq, reply.host);