Changeset 12 for stat_functions.php
- Timestamp:
- Oct 16, 2007, 10:40:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stat_functions.php
r11 r12 115 115 116 116 // 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)); 119 118 120 119 $Point = ComputeOneValue($StartTime, $EndTime, $Values, $Measure, $Level); … … 124 123 (time < "'.TimeToMysqlDateTime($EndTime).'") AND measure='.$Measure['Id'].' AND level='.$Level); 125 124 $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'], 127 126 'avg' => $Point['avg'], 'max' => $Point['max'], 'continuity' => $Continuity, 'time' => TimeToMysqlDateTime($StartTime+($EndTime-$StartTime)/2))); 128 127
Note:
See TracChangeset
for help on using the changeset viewer.