From 98d9dc807dc9f4cdb4d2d15276ce152cbca206e4 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Fri, 15 Nov 2002 20:27:47 +0000 Subject: [PATCH] lookup by result instead of workgroup svn path=/trunk/boinc/; revision=618 --- client/client_state.C | 4 ++-- client/client_state.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client_state.C b/client/client_state.C index 86d429b87e..9c833e30b4 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -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; } diff --git a/client/client_state.h b/client/client_state.h index ba4f47218f..9b51523f3c 100644 --- a/client/client_state.h +++ b/client/client_state.h @@ -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;