Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6469


Ignore:
Timestamp:
06/22/11 16:47:57 (14 years ago)
Author:
cneumuel
Message:

#1215

  • minor statistics improvements
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4
Files:
2 edited

Legend:

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

    r6458 r6469  
    2525    Avg. CPU Utilization:
    2626    <asp:Label ID="cpuUtilizationLabel" runat="server" />
     27    <br />
     28    Total ExecutionTime on Hive:
     29    <asp:Label ID="totalExecutionTimeLabel" runat="server" />
    2730    <br />
    2831    <br />
     
    6972    </asp:Chart>
    7073    <br />
    71     <br />
    7274    Cores/Used Cores History<br />
    7375    <asp:Chart ID="coresChart" runat="server" Palette="None" Width="1900px" PaletteCustomColors="137, 165, 78; 185, 205, 150">
     
    9395      </ChartAreas>
    9496    </asp:Chart>
    95     <br />
    9697    <br />
    9798    Memory/Used Memory History (GB)<br />
     
    142143    </asp:Chart>
    143144    <br />
    144     <br />
    145145    Speedup (ComputedHours/Hour)<br />
    146146    <br />
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Web/Hive-3.4/Status.aspx.cs

    r6458 r6469  
    2626    slavesLabel.Text = string.Join(", ", onlineSlaves.Select(x => string.Format("{0} ({1} %)", x.Name, Math.Round(x.CpuUtilization, 2))));
    2727
    28     cpuUtilizationLabel.Text = onlineSlaves.Count() > 0 ? onlineSlaves.Average(s => s.CpuUtilization).ToString() : "0.0";
     28    cpuUtilizationLabel.Text = (onlineSlaves.Count() > 0 ? Math.Round(onlineSlaves.Average(s => s.CpuUtilization), 2).ToString() : "0.0") + " %";
    2929
    3030    HeuristicLab.Services.Hive.Common.DataTransfer.Statistics[] stats;
     
    3434      stats = dao.GetStatistics(x => x.Timestamp >= DateTime.Now.Subtract(TimeSpan.FromDays(int.Parse(daysDropDownList.SelectedValue)))).OrderByDescending(x => x.TimeStamp).ToArray();
    3535
     36    var firstStatisticsDate = DateTime.Parse("2011-05-24 17:16:40");
     37    var statisticsSince = DateTime.Now - firstStatisticsDate;
     38    totalExecutionTimeLabel.Text = new TimeSpan(stats.First().UserStatistics.Sum(x => x.ExecutionTime.Ticks)).ToString() + " (since " + Math.Round(statisticsSince.TotalDays, 2) + " days)";
    3639
    3740    for (int i = 0; i < stats.Length; i++) {
Note: See TracChangeset for help on using the changeset viewer.