mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3474
This commit is contained in:
parent
c63b8f0e86
commit
5f24db9a10
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue