mirror of https://github.com/BOINC/boinc.git
lookup by result instead of workgroup
svn path=/trunk/boinc/; revision=618
This commit is contained in:
parent
d1fabe2c03
commit
98d9dc807d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue