Changeset 12931 for branches/crossvalidation-2434/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history
- Timestamp:
- 09/02/15 13:16:18 (9 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/history.cshtml
r12666 r12931 15 15 <label for="fromDate">From: </label> 16 16 <div class="input-group"> 17 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="fromDate" is-open="fromIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close" 17 <input id="fromDate" type="text" class="form-control" datepicker-popup="dd.MM.yyyy" ng-model="fromDate" is-open="fromIsOpen" datepicker-options="dateOptions" ng-required="true" close-text="Close"/> 18 18 <span class="input-group-btn"> 19 19 <button type="button" class="btn btn-default" ng-click="openFromDateSelection($event)"><i class="glyphicon glyphicon-calendar"></i></button> … … 32 32 <div class="form-group" style="margin-left: 5px; margin-right: 5px;"> 33 33 <div class="btn-group" dropdown dropdown-append-to-body> 34 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 1 30px; text-align: left;">35 <span class="text-left" style="display: inline-block; width: 85px;">{{curQuickSelection.name}}</span>34 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 145px; text-align: left;"> 35 <span class="text-left" style="display: inline-block; width: 100px;">{{curQuickSelection.name}}</span> 36 36 <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span> 37 37 </button> 38 38 <ul class="dropdown-menu" role="menu"> 39 39 <li ng-repeat="quickSelection in quickSelectionList"> 40 <a ng-click="changeQuickSelection(quickSelection)">{{quickSelection.name}}</a>40 <a class="cursor-pointer" ng-click="changeQuickSelection(quickSelection)">{{quickSelection.name}}</a> 41 41 </li> 42 42 </ul> … … 50 50 </form> 51 51 </div> 52 53 52 54 53 <div class="default-view-container"> -
branches/crossvalidation-2434/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js
r12583 r12931 2 2 var module = appStatusPlugin.getAngularModule(); 3 3 module.controller('app.status.historyCtrl', 4 ['$scope', '$interval', 'app.status.data.service', 5 function ($scope, $interval, dataService ) {4 ['$scope', '$interval', 'app.status.data.service', '$log', 5 function ($scope, $interval, dataService, $log) { 6 6 $scope.chartOptions = { 7 7 grid: { … … 40 40 }; 41 41 42 43 42 $scope.fromDate = new Date(); 44 43 $scope.toDate = new Date(); … … 52 51 { id: 2, name: 'Yesterday' }, 53 52 { id: 3, name: 'Last 7 Days' }, 54 { id: 4, name: 'Last 30 Days' } 53 { id: 4, name: 'Last 30 Days' }, 54 { id: 5, name: 'Last 6 Months' }, 55 { id: 6, name: 'Last Year' } 55 56 ]; 56 57 $scope.changeQuickSelection = function (quickSelection) { … … 72 73 case 4: 73 74 $scope.fromDate = new Date(today.valueOf() - (30 * oneDayInMs)); 75 $scope.toDate = new Date(today.valueOf()); 76 break; 77 case 5: 78 var month = today.getMonth() - 6; 79 if (month < 0) { 80 month += 12; 81 } 82 $scope.fromDate = new Date(today.valueOf()); 83 $scope.fromDate.setMonth(month); 84 $scope.toDate = new Date(today.valueOf()); 85 break; 86 case 6: 87 $scope.fromDate = new Date(today.valueOf()); 88 $scope.fromDate.setFullYear(today.getFullYear()-1); 74 89 $scope.toDate = new Date(today.valueOf()); 75 90 break; … … 113 128 for (var i = 0; i < noOfStatus; ++i) { 114 129 var curStatus = status[i]; 115 var cpuData = Math.round(curStatus.CpuUtilizationStatus. ActiveCpuUtilization);130 var cpuData = Math.round(curStatus.CpuUtilizationStatus.TotalCpuUtilization); 116 131 cpuSeries.push([curStatus.Timestamp, cpuData]); 117 coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus. ActiveCores]);118 coreSeries[1].push([curStatus.Timestamp, curStatus.CoreStatus. CalculatingCores]);119 memorySeries[0].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus. ActiveMemory / 1024)]);132 coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus.TotalCores]); 133 coreSeries[1].push([curStatus.Timestamp, curStatus.CoreStatus.UsedCores]); 134 memorySeries[0].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.TotalMemory / 1024)]); 120 135 memorySeries[1].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.UsedMemory / 1024)]); 121 136 } … … 129 144 { data: memorySeries[1], label: " Used Memory", color: "LightPink" } 130 145 ]; 131 132 146 }); 133 147 };
Note: See TracChangeset
for help on using the changeset viewer.