Changeset 43 for trunk/Application/Model/stat_functions.php
- Timestamp:
- Nov 24, 2009, 2:03:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Model/stat_functions.php
r42 r43 55 55 } 56 56 57 function GetMicrotime()58 {59 list($Usec, $Sec) = explode(" ", microtime());60 return ((float)$Usec + (float)$Sec);61 }62 63 57 function MysqlDateTimeToTime($Time) 64 58 { … … 94 88 } 95 89 96 function GetMeasureById($Id)97 {98 global $Database;99 100 $Result = $Database->select('measure', '*', 'Id='.$Id);101 if($Result->num_rows > 0)102 {103 $Measure = $Result->fetch_assoc();104 if($Measure['Continuity'] == 0) $Measure['ContinuityEnabled'] = 0; // non continuous105 else $Measure['ContinuityEnabled'] = 2; // continuous graph106 } else die('Měřená veličina nenalezena');107 return($Measure);108 }109 90 110 91 function AddValue($Measure, $Value = array('min' => 0, 'avg' => 0, 'max' => 0), $Level = 0, $Time = 0)
Note:
See TracChangeset
for help on using the changeset viewer.