Changeset 10 for stat_functions.php
- Timestamp:
- Oct 16, 2007, 10:32:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stat_functions.php
r9 r10 61 61 //$Value = round($Measure['divider'] * $Value); 62 62 63 $Result = $Datab se->select($Measure['DataTable'], '*', 'measure='.$Measure['Id'].' AND level=0 ORDER BY time DESC LIMIT 2');63 $Result = $Database->select($Measure['DataTable'], '*', 'measure='.$Measure['Id'].' AND level=0 ORDER BY time DESC LIMIT 2'); 64 64 if($Result->num_rows == 0) $Database->insert($Measure['DataTable'], array('min' => $Value, 'avg' => $Value, 'max' => $Value, 'level' => 0, 'measure' => $Measure['Id'], 'time' => TimeToMysqlDateTime($Time), 65 65 'continuity' => 0));
Note:
See TracChangeset
for help on using the changeset viewer.