mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=5900
This commit is contained in:
parent
7527620682
commit
2c38c3e9a8
|
@ -27419,3 +27419,11 @@ David 19 April 2005
|
|||
app.C
|
||||
cs_cmdline.C
|
||||
gui_rpc_server.C
|
||||
|
||||
David 19 April 2005
|
||||
- core client: warn user if results are overdue
|
||||
|
||||
client/
|
||||
app.C,h
|
||||
client_state.C
|
||||
cs_apps.C
|
||||
|
|
18
client/app.C
18
client/app.C
|
@ -492,4 +492,22 @@ void MSG_QUEUE::msg_queue_poll(MSG_CHANNEL& channel) {
|
|||
}
|
||||
}
|
||||
|
||||
void ACTIVE_TASK_SET::report_overdue(double now) {
|
||||
unsigned int i;
|
||||
ACTIVE_TASK* atp;
|
||||
|
||||
for (i=0; i<active_tasks.size(); i++) {
|
||||
atp = active_tasks[i];
|
||||
double diff = (now - atp->result->report_deadline)/86400;
|
||||
if (diff > 0) {
|
||||
msg_printf(atp->result->project, MSG_ERROR,
|
||||
"Result %s is %.2f days overdue.", atp->result->name, diff
|
||||
);
|
||||
msg_printf(atp->result->project, MSG_ERROR,
|
||||
"You may not get credit for it. Consider aborting it."
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const char *BOINC_RCSID_778b61195e = "$Id$";
|
||||
|
|
|
@ -204,6 +204,7 @@ public:
|
|||
int get_free_slot();
|
||||
void send_heartbeats();
|
||||
void send_trickle_downs();
|
||||
void report_overdue(double);
|
||||
|
||||
// screensaver-related functions
|
||||
ACTIVE_TASK* get_ss_app();
|
||||
|
|
|
@ -329,6 +329,8 @@ int CLIENT_STATE::init() {
|
|||
retval = make_project_dirs();
|
||||
if (retval) return retval;
|
||||
|
||||
active_tasks.report_overdue(dtime());
|
||||
|
||||
// Just to be on the safe side; something may have been modified
|
||||
//
|
||||
set_client_state_dirty("init");
|
||||
|
|
|
@ -658,8 +658,7 @@ int CLIENT_STATE::choose_version_num(char* app_name, SCHEDULER_REPLY& sr) {
|
|||
return best;
|
||||
}
|
||||
|
||||
// goes through results and checks if the associated apps has no app files
|
||||
// then there is nothing to do, never start the app, close the result
|
||||
// handle file-transfer applications
|
||||
//
|
||||
void CLIENT_STATE::handle_file_xfer_apps() {
|
||||
unsigned int i;
|
||||
|
|
Loading…
Reference in New Issue