Ignore:
Timestamp:
Jul 27, 2014, 9:14:56 PM (10 years ago)
Author:
chronos
Message:
  • Odstraněno: Zbytečná PHP ukončovací značka "?>" z konce všech souborů.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 
        21config.php
         2.project
  • trunk/Application/Model/stat_functions.php

    r43 r47  
    4343  if($Unit == '') return(TruncateDigits($Value, $Digits));
    4444  $I = 8;
    45   if($Value > 0) $II = 1; 
     45  if($Value > 0) $II = 1;
    4646  else if($Value < 0) $II = -1;
    4747  else $II = 0;
     
    9999  $Result = $Database->select($Measure['DataTable'], '*', 'measure='.$Measure['Id'].' AND level='.$Level.' ORDER BY time DESC LIMIT 2');
    100100  //echo($Database->LastQuery."\n");
    101   if($Result->num_rows == 0) 
    102   {
    103      $Database->insert($Measure['DataTable'], array('min' => $Value['min'], 'avg' => $Value['avg'], 'max' => $Value['max'], 'level' => $Level, 'measure' => $Measure['Id'], 'time' => TimeToMysqlDateTime($Time), 'continuity' => 0)); 
     101  if($Result->num_rows == 0)
     102  {
     103     $Database->insert($Measure['DataTable'], array('min' => $Value['min'], 'avg' => $Value['avg'], 'max' => $Value['max'], 'level' => $Level, 'measure' => $Measure['Id'], 'time' => TimeToMysqlDateTime($Time), 'continuity' => 0));
    104104     //echo($Database->LastQuery."\n");
    105105  } else if($Result->num_rows == 1)
     
    237237        }
    238238      }
    239       else if($ValueType == 'min') 
    240       {
    241         //echo($Values[$I+1]['continuity'].'=='.$Measure['ContinuityEnabled'].'<br>'); 
     239      else if($ValueType == 'min')
     240      {
     241        //echo($Values[$I+1]['continuity'].'=='.$Measure['ContinuityEnabled'].'<br>');
    242242        if($Values[$I + 1]['continuity'] == $Measure['ContinuityEnabled'])
    243243        {
     
    258258    $NewValue[$ValueType] = $NewValue[$ValueType];
    259259  }
    260   //if(($RightTime - $LeftTime) > 0) 
    261   if($Measure['Cumulative'] == 0) 
     260  //if(($RightTime - $LeftTime) > 0)
     261  if($Measure['Cumulative'] == 0)
    262262  {
    263263    $NewValue['avg'] = $NewValue['avg'] / ($RightTime - $LeftTime);
     
    273273
    274274  // Get first and last time
    275   //echo($Measure['Id'].','.$Level.','.StatTableName($Level)."\n"); 
     275  //echo($Measure['Id'].','.$Level.','.StatTableName($Level)."\n");
    276276  $Result = $Database->select($Measure['DataTable'], '*', 'measure='.$Measure['Id'].' AND level='.$Level.' ORDER BY time LIMIT 1');
    277277  if($Result->num_rows > 0)
     
    288288  } else $AbsoluteRightTime = 0;
    289289
    290   if($Debug) 
     290  if($Debug)
    291291  {
    292292    echo('AbsoluteLeftTime: '.$AbsoluteLeftTime.'('.TimeToMysqlDateTime($AbsoluteLeftTime).')<br>');
     
    297297
    298298function LoadRightSideValue($Level, $Measure, $Time)
    299 { 
     299{
    300300  global $Debug, $Database;
    301301  $Result = array();
     
    362362  //$AbsoluteTime = GetTimeRange($MeasureId);
    363363
    364 //  if(($TimeFrom > $AbsoluteLeftTime) and ($TimeStart < $AbsoluteRightTime) and 
     364//  if(($TimeFrom > $AbsoluteLeftTime) and ($TimeStart < $AbsoluteRightTime) and
    365365//    ($TimeTo > $AbsoluteLeftTime) and ($TimeTo < $AbsoluteRightTime))
    366366//  {
     
    480480      // Load values in time range
    481481      //array_pop($NextValues);
    482     } 
     482    }
    483483    echo("Uroven dokoncena<br>\n");
    484484    $DbResult = $Database->select($Measure['DataTable'], 'COUNT(*)', 'level='.$Level.' AND measure='.$Measure['Id']);
     
    525525) ENGINE = MYISAM ;');
    526526}
    527 
    528 ?>
Note: See TracChangeset for help on using the changeset viewer.