Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/25/12 10:15:59 (12 years ago)
Author:
ascheibe
Message:

#1882 fixed collecting runs in the OptimizerHiveTaskView

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r8691 r8692  
    534534        RunCollection runs = new RunCollection();
    535535
    536         foreach (HiveTask subTask in job.HiveTasks) {
    537           GetAllRunsFromHiveTask(runs, subTask);
     536        foreach (HiveTask hiveTask in job.HiveTasks) {
     537          TaskUtil.GetAllRunsFromHiveTask(runs, hiveTask);
    538538        }
    539539        return runs;
    540540      } else {
    541541        return null;
    542       }
    543     }
    544 
    545     private void GetAllRunsFromHiveTask(RunCollection runs, HiveTask task) {
    546       foreach (HiveTask subTask in task.ChildHiveTasks) {
    547         GetAllRunsFromHiveTask(runs, subTask);
    548       }
    549 
    550       if (task.ChildHiveTasks.Count == 0) {
    551         if (task is OptimizerHiveTask) {
    552           OptimizerHiveTask ohTask = task as OptimizerHiveTask;
    553           runs.AddRange(ohTask.ItemTask.Item.Runs);
    554         }
    555542      }
    556543    }
Note: See TracChangeset for help on using the changeset viewer.