summaryrefslogtreecommitdiff
path: root/framework/Util
diff options
context:
space:
mode:
authorxue <>2006-04-18 21:36:57 +0000
committerxue <>2006-04-18 21:36:57 +0000
commit4a4d7d8979801e75f0d339e1c10ba9360d279eec (patch)
tree604fe7903eb52f6bb47db4ee387a08565d1f660a /framework/Util
parentf3a51905d5e465f1d8f3f7dd25b235612304174d (diff)
another mistake fixed.
Diffstat (limited to 'framework/Util')
-rw-r--r--framework/Util/TLogRouter.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index e4293902..fe0d2964 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -596,11 +596,16 @@ class TBrowserLogRoute extends TLogRoute
$response->write($this->renderHeader());
for($i=0,$n=count($logs);$i<$n;++$i)
{
- $timing['total'] = $logs[$i+1][3] - $first;
if ($i<$n-1)
+ {
$timing['delta'] = $logs[$i+1][3] - $logs[$i][3];
+ $timing['total'] = $logs[$i+1][3] - $first;
+ }
else
+ {
$timing['delta'] = '?';
+ $timing['total'] = $logs[$i][3] - $first;
+ }
$timing['even'] = !($even = !$even);
$response->write($this->renderMessage($logs[$i],$timing));
}