From 3ff35ae583c52e54418a61cabf3282c00a8039d1 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 18 Apr 2006 23:29:18 +0000 Subject: Merge from 3.0 branch till 942. --- framework/Util/TLogRouter.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'framework/Util/TLogRouter.php') diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php index 233fd373..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][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)); } -- cgit v1.2.3