diff options
author | xue <> | 2006-04-18 02:41:35 +0000 |
---|---|---|
committer | xue <> | 2006-04-18 02:41:35 +0000 |
commit | 4dba56d6709d495c8ded0b8e4fa2d6fdaa225cc0 (patch) | |
tree | 75739bab44cd204b57e8c55cb9e5591852d73ddb /framework | |
parent | 117fa9bc23399c241ba42e5d085bc8784c752583 (diff) |
Fixed #135.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Util/TLogRouter.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php index 06d70b1e..234d00e3 100644 --- a/framework/Util/TLogRouter.php +++ b/framework/Util/TLogRouter.php @@ -595,13 +595,18 @@ class TBrowserLogRoute extends TLogRoute $even = true;
$response = $this->getApplication()->getResponse();
$response->write($this->renderHeader());
- foreach($logs as $log)
+ for($i=0,$n=count($logs);$i<$n;++$i)
{
- $timing['total'] = $log[3] - $first;
- $timing['delta'] = $log[3] - $prev;
+ //$timing['total'] = $log[3] - $first;
+ //$timing['delta'] = $log[3] - $prev;
+ $timing['total'] = $logs[$i][3] - $first;
+ if ($i<$n-1)
+ $timing['delta'] = $logs[$i+1][3] - $logs[$i][3];
+ else
+ $timing['delta'] = '?';
$timing['even'] = !($even = !$even);
- $prev=$log[3];
- $response->write($this->renderMessage($log,$timing));
+ //$prev=$log[3];
+ $response->write($this->renderMessage($logs[$i],$timing));
}
$response->write($this->renderFooter());
}
|