Changeset 52 for branches/old/index.php
- Timestamp:
- Feb 20, 2015, 9:31:53 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/old/index.php
r51 r52 182 182 $RowCount = $RowCount[0]; 183 183 } 184 $Result2 = $Database->select($Measure['DataTable'], 'time, avg', ' measure='.$Measure['Id'].' AND level=0ORDER BY time DESC LIMIT 1');184 $Result2 = $Database->select($Measure['DataTable'], 'time, avg', '(measure='.$Measure['Id'].') AND (level=0) ORDER BY time DESC LIMIT 1'); 185 185 if($Result2->num_rows > 0) 186 186 { 187 187 $Row = $Result2->fetch_array(); 188 188 $LastMeasureTime = date('j.n.Y G:i:s', MysqlDateTimeToTime($Row['time'])); 189 $LastMeasureValue = AddPrefixMultipliers($Row['avg'], $Measure['Unit']);189 $LastMeasureValue = $PrefixMultiplier->Add($Row['avg'], $Measure['Unit']); 190 190 } else { 191 191 $LastMeasureTime = ' '; … … 195 195 if($Measure['Info'] == '') $Measure['Info'] = ' '; 196 196 $GenerationTime = floor((GetMicrotime() - $StopWatchStart) * 1000 ) / 1000; 197 $Output .= '<tr><td ><a href="?Measure='.$Measure['Id'].'&Differential=0">'.$Measure['Description'].'</a></td><td align="center">'.$LastMeasureValue.'</td><td align="center">'.$LastMeasureTime.'</td><td align="center">'.$Interpolate.'</td><td>'.$Measure['Info'].'</td>';197 $Output .= '<tr><td style="text-align: left"><a href="?Measure='.$Measure['Id'].'&Differential=0">'.$Measure['Description'].'</a></td><td align="center">'.$LastMeasureValue.'</td><td align="center">'.$LastMeasureTime.'</td><td align="center">'.$Interpolate.'</td><td>'.$Measure['Info'].'</td>'; 198 198 if(array_key_exists('Debug', $_GET)) $Output .= '<td>'.$RowCount.'</td><td>'.$GenerationTime.'</td>'; 199 199 $Output .= '</tr>';
Note:
See TracChangeset
for help on using the changeset viewer.