Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/15 16:28:38 (9 years ago)
Author:
ascheibe
Message:

#2388 merged r12878, r12879, r12883, r12885, r12913, r12914, r12925, r12932, r12961 into stable

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Services.WebApp.Status/3.3/WebApp/status/statusCtrl.js

    r12563 r12962  
    44        ['$scope', '$interval', 'app.status.data.service',
    55        function ($scope, $interval, dataService) {
    6             $scope.interval = 10000; // update interval in ms
     6            $scope.interval = defaultPageUpdateInterval;
    77            $scope.knobOptions = {
    88                'fgColor': "#f7921d",
     
    103103                    $scope.cpu.knobData = Math.round(status.CpuUtilizationStatus.ActiveCpuUtilization);
    104104                    $scope.core.knobData = Math.round(status.CoreStatus.CalculatingCores / status.CoreStatus.ActiveCores * 100);
    105                     $scope.memory.knobData = Math.round(status.MemoryStatus.UsedMemory / status.MemoryStatus.ActiveMemory * 100);
     105                    $scope.memory.knobData = Math.round(status.MemoryStatus.CalculatingMemory / status.MemoryStatus.ActiveMemory * 100);
    106106                    // chart series
    107107                    var cpuSeries = $scope.cpu.series[0].data.splice(0);
     
    127127                   
    128128                    cpuSeries.push([$scope.status.Timestamp, Math.round(status.CpuUtilizationStatus.TotalCpuUtilization)]);
    129                     // charts are currently filled with old total/used data
    130                     // start temporary
    131                     var usedCores = status.CoreStatus.TotalCores - status.CoreStatus.FreeCores;
    132                     var usedMemory = status.MemoryStatus.TotalMemory - status.MemoryStatus.FreeMemory;
    133                     // end temporary
    134129                    coreSeries[0].push([$scope.status.Timestamp, status.CoreStatus.TotalCores]);
    135                     coreSeries[1].push([$scope.status.Timestamp, usedCores]);
     130                    coreSeries[1].push([$scope.status.Timestamp, status.CoreStatus.UsedCores]);
    136131                    memorySeries[0].push([$scope.status.Timestamp, Math.round(status.MemoryStatus.TotalMemory / 1024)]);
    137                     memorySeries[1].push([$scope.status.Timestamp, Math.round(usedMemory / 1024)]);
     132                    memorySeries[1].push([$scope.status.Timestamp, Math.round(status.MemoryStatus.UsedMemory / 1024)]);
    138133                    $scope.cpu.series = [{ data: cpuSeries, label: " CPU Utilization", color: "#f7921d" }];
    139134                    $scope.core.series = [
     
    160155                    for (var i = 0; i < noOfStatus; ++i) {
    161156                        var curStatus = status[i];
    162                         var cpuData = Math.round(curStatus.CpuUtilizationStatus.ActiveCpuUtilization);
     157                        var cpuData = Math.round(curStatus.CpuUtilizationStatus.TotalCpuUtilization);
    163158                        cpuSeries.push([curStatus.Timestamp, cpuData]);
    164                         coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus.ActiveCores]);
    165                         coreSeries[1].push([curStatus.Timestamp, curStatus.CoreStatus.CalculatingCores]);
    166                         memorySeries[0].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.ActiveMemory / 1024)]);
     159                        coreSeries[0].push([curStatus.Timestamp, curStatus.CoreStatus.TotalCores]);
     160                        coreSeries[1].push([curStatus.Timestamp, curStatus.CoreStatus.UsedCores]);
     161                        memorySeries[0].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.TotalMemory / 1024)]);
    167162                        memorySeries[1].push([curStatus.Timestamp, Math.round(curStatus.MemoryStatus.UsedMemory / 1024)]);
    168163                    }
Note: See TracChangeset for help on using the changeset viewer.