Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/06/11 16:26:00 (13 years ago)
Author:
ascheibe
Message:

#1233

  • got db scripts up-to-date
  • renamed db related stuff back to 3.3
  • fixed a bug in the Status page that occured when the db is empty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx.cs

    r6478 r6712  
    4949    var firstStatisticsDate = DateTime.Parse("2011-05-24 17:16:40");
    5050    var statisticsSince = DateTime.Now - firstStatisticsDate;
    51     totalExecutionTimeLabel.Text = new TimeSpan(stats.Last().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)";
     51    if (stats.Length != 0) {
     52      totalExecutionTimeLabel.Text = new TimeSpan(stats.Last().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)";
     53    } else {
     54      totalExecutionTimeLabel.Text = "00:00:00.00";
     55    }
    5256   
    5357    for (int i = 0; i < stats.Length; i++) {
Note: See TracChangeset for help on using the changeset viewer.