Changeset 12 for stat_functions.php


Ignore:
Timestamp:
Oct 16, 2007, 10:40:58 PM (17 years ago)
Author:
george
Message:

Oprava

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stat_functions.php

    r11 r12  
    115115
    116116      // Load subsidary values
    117       array_unshift($Values, LoadLeftSideValue($Level-1, $Measure, $StartTime));
    118       array_push($Values, LoadRightSideValue($Level-1, $Measure, $EndTime));
     117      $Values = array_merge(LoadLeftSideValue($Level-1, $Measure, $StartTime), $Values, LoadRightSideValue($Level-1, $Measure, $EndTime));
    119118
    120119      $Point = ComputeOneValue($StartTime, $EndTime, $Values, $Measure, $Level);
     
    124123        (time < "'.TimeToMysqlDateTime($EndTime).'") AND measure='.$Measure['Id'].' AND level='.$Level);
    125124      $Continuity = $Values[1]['continuity'];   
    126       $Database->insert($DataTable, array('level' => $Level, 'measure' => $Measure['Id'], 'min' => $Point['min'],
     125      $Database->insert($Measure['DataTable'], array('level' => $Level, 'measure' => $Measure['Id'], 'min' => $Point['min'],
    127126        'avg' => $Point['avg'], 'max' => $Point['max'], 'continuity' => $Continuity, 'time' => TimeToMysqlDateTime($StartTime+($EndTime-$StartTime)/2)));
    128127
Note: See TracChangeset for help on using the changeset viewer.