- Timestamp:
- 07/01/15 14:59:47 (9 years ago)
- Location:
- stable
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12146,12428-12430,12435,12442-12443,12445,12457,12514,12517,12519-12521,12523,12532,12542,12546,12552-12553,12556-12557,12559,12561 -
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/history.cshtml
r12428 r12563 12 12 <div id="history-header"> 13 13 <form class="form-inline"> 14 <div class="form-group" >14 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 15 15 <label for="fromDate">From: </label> 16 16 <div class="input-group"> … … 21 21 </div> 22 22 </div> 23 <div class="form-group" >24 <label for="fromDate"> To: </label>23 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 24 <label for="fromDate">To: </label> 25 25 <div class="input-group"> 26 26 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="toDate" is-open="toIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close" /> … … 29 29 </span> 30 30 </div> 31 </div> 32 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 33 <button type="button" class="btn btn-default" ng-click="updateCharts()"> 34 Apply 35 </button> 31 36 </div> 32 37 </form> -
stable/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js
r12428 r12563 4 4 ['$scope', '$interval', 'app.status.data.service', 5 5 function ($scope, $interval, dataService) { 6 7 6 $scope.chartOptions = { 8 7 grid: { … … 15 14 yaxis: { 16 15 min: 0, 17 max: 100, 18 zoomRange: false, 19 panRange: false 16 max: 100 20 17 }, 21 18 xaxis: { 22 19 mode: "time", 23 20 twelveHourClock: false 24 },25 zoom: {26 interactive: true27 },28 pan: {29 interactive: true30 21 } 31 22 }; … … 43 34 } 44 35 }, 45 yaxis: {46 zoomRange: false,47 panRange: false48 },49 36 xaxis: { 50 37 mode: "time", 51 38 twelveHourClock: false 52 },53 zoom: {54 interactive: true55 },56 pan: {57 interactive: true58 39 } 59 40 }; 41 60 42 61 43 $scope.fromDate = new Date(); … … 88 70 $scope.memorySeries = [[]]; 89 71 90 varupdateCharts = function () {91 dataService.getStatusHistory({ start: ConvertFromDate($scope.fromDate), end: ConvertToDate($scope.toDate)}, function (status) {72 $scope.updateCharts = function () { 73 dataService.getStatusHistory({ start: ConvertFromDate($scope.fromDate), end: ConvertToDate($scope.toDate) }, function (status) { 92 74 var noOfStatus = status.length; 93 75 var cpuSeries = []; … … 96 78 for (var i = 0; i < noOfStatus; ++i) { 97 79 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; 80 var cpuData = Math.round(curStatus.CpuUtilizationStatus.ActiveCpuUtilization); 101 81 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]);82 coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus.ActiveCores]); 83 coreSeries[1].push([curStatus.Timestamp, curStatus.CoreStatus.CalculatingCores]); 84 memorySeries[0].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.ActiveMemory / 1024)]); 85 memorySeries[1].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.UsedMemory / 1024)]); 106 86 } 107 87 $scope.cpuSeries = [{ data: cpuSeries, label: " CPU Utilization", color: "#f7921d" }]; … … 117 97 }); 118 98 }; 119 120 $scope.$watch('fromDate', function (newValue, oldValue) { 121 updateCharts(); 122 }); 123 $scope.$watch('toDate', function (newValue, oldValue) { 124 updateCharts(); 125 }); 99 $scope.updateCharts(); 126 100 }] 127 101 );
Note: See TracChangeset
for help on using the changeset viewer.