- Timestamp:
- 06/12/15 14:59:54 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/history.cshtml
r12428 r12435 56 56 <div class="panel-body"> 57 57 <flot dataset="coreSeries" options="fillChartOptions"></flot> 58 <p>{{maxUpper}}</p> 59 <p>{{fromDateTime}}</p> 60 <p>{{toDateTime}}</p> 58 61 </div> 59 62 </div> -
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js
r12428 r12435 4 4 ['$scope', '$interval', 'app.status.data.service', 5 5 function ($scope, $interval, dataService) { 6 7 6 $scope.chartOptions = { 8 7 grid: { … … 59 58 }; 60 59 60 61 61 $scope.fromDate = new Date(); 62 62 $scope.toDate = new Date(); … … 89 89 90 90 var updateCharts = function () { 91 dataService.getStatusHistory({ start: ConvertFromDate($scope.fromDate), end: ConvertToDate($scope.toDate)}, function (status) {91 dataService.getStatusHistory({ start: ConvertFromDate($scope.fromDate), end: ConvertToDate($scope.toDate) }, function (status) { 92 92 var noOfStatus = status.length; 93 93 var cpuSeries = []; … … 96 96 for (var i = 0; i < noOfStatus; ++i) { 97 97 var curStatus = status[i]; 98 var cpuData = Math.round(curStatus.CpuUtilizationStatus.UsedCpuUtilization); 99 var usedCores = curStatus.CoreStatus.TotalCores - curStatus.CoreStatus.FreeCores; 100 var usedMemory = curStatus.MemoryStatus.TotalMemory - curStatus.MemoryStatus.FreeMemory; 98 var cpuData = Math.round(curStatus.CpuUtilizationStatus.ActiveCpuUtilization); 101 99 cpuSeries.push([curStatus.Timestamp, cpuData]); 102 coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus. TotalCores]);103 coreSeries[1].push([curStatus.Timestamp, usedCores]);104 memorySeries[0].push([curStatus.Timestamp, curStatus.MemoryStatus. TotalMemory]);105 memorySeries[1].push([curStatus.Timestamp, usedMemory]);100 coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus.ActiveCores]); 101 coreSeries[1].push([curStatus.Timestamp, curStatus.CoreStatus.CalculatingCores]); 102 memorySeries[0].push([curStatus.Timestamp, curStatus.MemoryStatus.ActiveMemory]); 103 memorySeries[1].push([curStatus.Timestamp, curStatus.MemoryStatus.UsedMemory]); 106 104 } 107 105 $scope.cpuSeries = [{ data: cpuSeries, label: " CPU Utilization", color: "#f7921d" }];
Note: See TracChangeset
for help on using the changeset viewer.