diff options
author | xue <> | 2006-04-18 21:12:01 +0000 |
---|---|---|
committer | xue <> | 2006-04-18 21:12:01 +0000 |
commit | f3a51905d5e465f1d8f3f7dd25b235612304174d (patch) | |
tree | 5c3047642aa1b08325b2d01b8b9a171ef3f45f52 /framework/Util | |
parent | c9455982c3fe63498ed35ffa25182e45d243752e (diff) |
Fixed a bug in calculating accumulative time.
Diffstat (limited to 'framework/Util')
-rw-r--r-- | framework/Util/TLogRouter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php index 233fd373..e4293902 100644 --- a/framework/Util/TLogRouter.php +++ b/framework/Util/TLogRouter.php @@ -596,7 +596,7 @@ class TBrowserLogRoute extends TLogRoute $response->write($this->renderHeader());
for($i=0,$n=count($logs);$i<$n;++$i)
{
- $timing['total'] = $logs[$i][3] - $first;
+ $timing['total'] = $logs[$i+1][3] - $first;
if ($i<$n-1)
$timing['delta'] = $logs[$i+1][3] - $logs[$i][3];
else
|