Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/02/15 13:16:18 (9 years ago)
Author:
gkronber
Message:

#2434 merged r12878:12927 from trunk to branch (hive changes)

Location:
branches/crossvalidation-2434
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/crossvalidation-2434

  • branches/crossvalidation-2434/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/history.cshtml

    r12666 r12931  
    1515            <label for="fromDate">From:&nbsp;</label>
    1616            <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"/>
    1818                <span class="input-group-btn">
    1919                    <button type="button" class="btn btn-default" ng-click="openFromDateSelection($event)"><i class="glyphicon glyphicon-calendar"></i></button>
     
    3232        <div class="form-group" style="margin-left: 5px; margin-right: 5px;">
    3333            <div class="btn-group" dropdown dropdown-append-to-body>
    34                 <button type="button" class="btn btn-default dropdown-toggle" dropdown-toggle style="width: 130px; 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>
    3636                    <span class="glyphicon glyphicon-chevron-down" style="margin-top: 3px;"></span>
    3737                </button>
    3838                <ul class="dropdown-menu" role="menu">
    3939                    <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>
    4141                    </li>
    4242                </ul>
     
    5050    </form>
    5151</div>
    52 
    5352
    5453<div class="default-view-container">
  • branches/crossvalidation-2434/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js

    r12583 r12931  
    22    var module = appStatusPlugin.getAngularModule();
    33    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) {
    66            $scope.chartOptions = {
    77                grid: {
     
    4040            };
    4141
    42 
    4342            $scope.fromDate = new Date();
    4443            $scope.toDate = new Date();
     
    5251                { id: 2, name: 'Yesterday' },
    5352                { 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' }
    5556            ];
    5657            $scope.changeQuickSelection = function (quickSelection) {
     
    7273                    case 4:
    7374                        $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);
    7489                        $scope.toDate = new Date(today.valueOf());
    7590                        break;
     
    113128                    for (var i = 0; i < noOfStatus; ++i) {
    114129                        var curStatus = status[i];
    115                         var cpuData = Math.round(curStatus.CpuUtilizationStatus.ActiveCpuUtilization);
     130                        var cpuData = Math.round(curStatus.CpuUtilizationStatus.TotalCpuUtilization);
    116131                        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)]);
    120135                        memorySeries[1].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.UsedMemory / 1024)]);
    121136                    }
     
    129144                        { data: memorySeries[1], label: "&nbsp;Used Memory", color: "LightPink" }
    130145                    ];
    131 
    132146                });
    133147            };
Note: See TracChangeset for help on using the changeset viewer.