diff options
author | xue <> | 2006-04-18 23:29:18 +0000 |
---|---|---|
committer | xue <> | 2006-04-18 23:29:18 +0000 |
commit | 3ff35ae583c52e54418a61cabf3282c00a8039d1 (patch) | |
tree | 0b21fa425e043d0375b64c9fd1679d878a04206b /framework/Util | |
parent | 7fe4f0ec9b89ba568cf0ddabffd929ed8e6739a5 (diff) |
Merge from 3.0 branch till 942.
Diffstat (limited to 'framework/Util')
-rw-r--r-- | framework/Util/TLogRouter.php | 7 |
1 files changed, 6 insertions, 1 deletions
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));
}
|