diff options
author | xue <> | 2006-01-09 13:44:57 +0000 |
---|---|---|
committer | xue <> | 2006-01-09 13:44:57 +0000 |
commit | 22b9af8b9858fca190efc8e0e5ff1053d7a86c41 (patch) | |
tree | 21b69c049c4f6888e1be03a10ed9a585aeef706b /framework/Log/TLogRouter.php | |
parent | 5890adb76457a5cee1e2b874eb656b969cceb758 (diff) |
Fixed a bug in counting total execution time in TBrowserLogRoute.
Diffstat (limited to 'framework/Log/TLogRouter.php')
-rw-r--r-- | framework/Log/TLogRouter.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/Log/TLogRouter.php b/framework/Log/TLogRouter.php index ecf57823..308e3a75 100644 --- a/framework/Log/TLogRouter.php +++ b/framework/Log/TLogRouter.php @@ -586,8 +586,7 @@ class TBrowserLogRoute extends TLogRoute $response->write($this->renderHeader());
foreach($logs as $log)
{
- $total += $log[3] - $first;
- $timing['total'] = $total;
+ $timing['total'] = $log[3] - $first;
$timing['delta'] = $log[3]-$prev;
$timing['even'] = !($even = !$even);
$prev=$log[3];
@@ -598,7 +597,7 @@ class TBrowserLogRoute extends TLogRoute protected function renderHeader()
{
- $category = is_array($this->getCategories()) ?
+ $category = is_array($this->getCategories()) ?
implode(', ',$this->getCategories()) : '';
$string = <<<EOD
<table cellspacing="0" cellpadding="0" border="0" width="100%">
@@ -608,7 +607,7 @@ class TBrowserLogRoute extends TLogRoute </th>
</tr><tr style="background-color: #ccc;">
<th>Category</th><th>Message</th><th>From First(s)</th><th>From Last(s)</th>
- </tr>
+ </tr>
EOD;
return $string;
}
|