Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11085


Ignore:
Timestamp:
07/04/14 09:00:03 (10 years ago)
Author:
mroscoe
Message:
 
Location:
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveStatisticsGenerator.cs

    r11041 r11085  
    260260          TotalTransferTime = stateLogsLinkedList.SumTotalTimeWhere(stateLog => stateLog.Value.State == TaskState.Transferring),
    261261          TaskState = t.Task.State,
    262           Exception = stateLogsLinkedList.NotNullException()
     262          Exception = stateLogsLinkedList.First(sl => sl.Exception != null).Exception
    263263        };
    264264
     
    283283                      .Where(stateLog => predicate(stateLog))
    284284                      .Sum(stateLog => stateLog.Next != null ? (stateLog.Next.Value.DateTime - stateLog.Value.DateTime).TotalMinutes : 0.0);
    285     }
    286     public static string NotNullException(this LinkedList<StateLog> stateLogs)
    287     {
    288       string error = null;
    289       if (stateLogs.EnumerateNodes().Count(sl => sl.Value.Exception != null) >= 1) {
    290         error = stateLogs.EnumerateNodes().First(sl => sl.Value.Exception != null).Value.Exception;
    291       }
    292       return error;
    293285    }
    294286  }
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Properties/Settings.Designer.cs

    r9526 r11085  
    22// <auto-generated>
    33//     This code was generated by a tool.
    4 //     Runtime Version:4.0.30319.18034
     4//     Runtime Version:4.0.30319.18449
    55//
    66//     Changes to this file may cause incorrect behavior and will be lost if
Note: See TracChangeset for help on using the changeset viewer.