summaryrefslogtreecommitdiff
path: root/framework/Util
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Util')
-rw-r--r--framework/Util/TLogRouter.php15
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());
}