lookup by result instead of workgroup

svn path=/trunk/boinc/; revision=618
This commit is contained in:
Eric Heien 2002-11-15 20:27:47 +00:00
parent d1fabe2c03
commit 98d9dc807d
2 changed files with 3 additions and 3 deletions

View File

@ -536,10 +536,10 @@ FILE_INFO* CLIENT_STATE::lookup_file_info(PROJECT* p, char* name) {
// Find the active task for a given workunit
//
ACTIVE_TASK* CLIENT_STATE::lookup_active_task_by_workunit(WORKUNIT* wup)
ACTIVE_TASK* CLIENT_STATE::lookup_active_task_by_result(RESULT* rep)
{
for(int i = 0; i < active_tasks.active_tasks.size(); i ++) {
if(active_tasks.active_tasks[i]->wup == wup) return active_tasks.active_tasks[i];
if(active_tasks.active_tasks[i]->result == rep) return active_tasks.active_tasks[i];
}
return NULL;
}

View File

@ -137,7 +137,7 @@ public:
RESULT* lookup_result(PROJECT*, char*);
WORKUNIT* lookup_workunit(PROJECT*, char*);
APP_VERSION* lookup_app_version(APP*, int);
ACTIVE_TASK* lookup_active_task_by_workunit(WORKUNIT*);
ACTIVE_TASK* lookup_active_task_by_result(RESULT*);
};
extern CLIENT_STATE gstate;