Changeset 16
- Timestamp:
- Oct 17, 2007, 8:26:10 PM (17 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
graph.php
r14 r16 36 36 37 37 // Calculate total max, avg, min value 38 $MaxValue = -1000000000 ;38 $MaxValue = -1000000000000000000; 39 39 $AvgValue = 0; 40 $MinValue = 1000000000 ;40 $MinValue = 1000000000000000000; 41 41 foreach($Points as $Index => $Item) 42 42 { … … 181 181 imagettftext($Image, $FontSize, 0, $Width-194, 14, $Green, $FontFile, "Avg. ".AddPrefixMultipliers($AvgValue, $Measure['Unit'])); 182 182 imagettftext($Image, $FontSize, 0, $Width-294, 14, $Blue, $FontFile, "Min. ".AddPrefixMultipliers($MinValue, $Measure['Unit'])); 183 imagestring($Image, 2, 70, 20, 'Vygenerováno za '.$GenerationTime.' sekund', $Black);183 //imagestring($Image, 2, 70, 20, 'Vygenerováno za '.$GenerationTime.' sekund', $Black); 184 184 //imagestring($Image, 2, 50, 30, 'Level: '.$Level, $Black); 185 185 -
stat_functions.php
r15 r16 123 123 ($LastValue['continuity'] == 1) and ($Continuity == 1)) 124 124 { 125 echo('s');125 //echo('s'); 126 126 $Database->update($Measure['DataTable'], 'time="'.$LastValue['time'].'" AND level=0 AND measure='.$Measure['Id'], array('time' => 'NOW()')); 127 127 } else … … 184 184 global $ValueTypes; 185 185 186 $NewValue = array('min' => +10000000000 , 'avg' => 0, 'max' => -10000000000);186 $NewValue = array('min' => +1000000000000000000, 'avg' => 0, 'max' => -1000000000000000000); 187 187 188 188 // Trim outside parts
Note:
See TracChangeset
for help on using the changeset viewer.