Changeset 52 for branches/old/index.php


Ignore:
Timestamp:
Feb 20, 2015, 9:31:53 AM (10 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/old/index.php

    r51 r52  
    182182    $RowCount = $RowCount[0];
    183183  }
    184   $Result2 = $Database->select($Measure['DataTable'], 'time, avg', 'measure='.$Measure['Id'].' AND level=0 ORDER 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');
    185185  if($Result2->num_rows > 0)
    186186  {
    187187    $Row = $Result2->fetch_array();
    188188    $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']);
    190190  } else {
    191191    $LastMeasureTime = ' ';
     
    195195  if($Measure['Info'] == '') $Measure['Info'] = ' ';
    196196  $GenerationTime = floor((GetMicrotime() - $StopWatchStart) * 1000  ) / 1000;
    197   $Output .= '<tr><td><a href="?Measure='.$Measure['Id'].'&amp;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'].'&amp;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>';
    198198  if(array_key_exists('Debug', $_GET)) $Output .= '<td>'.$RowCount.'</td><td>'.$GenerationTime.'</td>';
    199199  $Output .= '</tr>';
Note: See TracChangeset for help on using the changeset viewer.