Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/15 11:35:20 (9 years ago)
Author:
dglaser
Message:

#2388: Merged trunk into HiveStatistics branch

Location:
branches/HiveStatistics/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources

  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/history.cshtml

    r12516 r12522  
    1212<div id="history-header">
    1313    <form class="form-inline">
    14         <div class="form-group">
     14        <div class="form-group" style="margin-left: 5px; margin-right: 5px;">
    1515            <label for="fromDate">From:&nbsp;</label>
    1616            <div class="input-group">
     
    2121            </div>
    2222        </div>
    23         <div class="form-group">
    24             <label for="fromDate">&nbsp;&nbsp;To:&nbsp;</label>
     23        <div class="form-group" style="margin-left: 5px; margin-right: 5px;">
     24            <label for="fromDate">To:&nbsp;</label>
    2525            <div class="input-group">
    2626                <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" />
     
    2929                </span>
    3030            </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>
    3136        </div>
    3237    </form>
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApp/history/historyCtrl.js

    r12435 r12522  
    1414                yaxis: {
    1515                    min: 0,
    16                     max: 100,
    17                     zoomRange: false,
    18                     panRange: false
     16                    max: 100
    1917                },
    2018                xaxis: {
    2119                    mode: "time",
    2220                    twelveHourClock: false
    23                 },
    24                 zoom: {
    25                     interactive: true
    26                 },
    27                 pan: {
    28                     interactive: true
    2921                }
    3022            };
     
    4234                    }
    4335                },
    44                 yaxis: {
    45                     zoomRange: false,
    46                     panRange: false
    47                 },
    4836                xaxis: {
    4937                    mode: "time",
    5038                    twelveHourClock: false
    51                 },
    52                 zoom: {
    53                     interactive: true
    54                 },
    55                 pan: {
    56                     interactive: true
    5739                }
    5840            };
     
    8870            $scope.memorySeries = [[]];
    8971
    90             var updateCharts = function () {
     72            $scope.updateCharts = function () {
    9173                dataService.getStatusHistory({ start: ConvertFromDate($scope.fromDate), end: ConvertToDate($scope.toDate) }, function (status) {
    9274                    var noOfStatus = status.length;
     
    10082                        coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus.ActiveCores]);
    10183                        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]);
     84                        memorySeries[0].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.ActiveMemory / 1024)]);
     85                        memorySeries[1].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.UsedMemory / 1024)]);
    10486                    }
    10587                    $scope.cpuSeries = [{ data: cpuSeries, label: "&nbsp;CPU Utilization", color: "#f7921d" }];
     
    11597                });
    11698            };
    117 
    118             $scope.$watch('fromDate', function (newValue, oldValue) {
    119                 updateCharts();
    120             });
    121             $scope.$watch('toDate', function (newValue, oldValue) {
    122                 updateCharts();
    123             });
     99            $scope.updateCharts();
    124100        }]
    125101    );
Note: See TracChangeset for help on using the changeset viewer.