mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
time also loading of a mail body
This commit is contained in:
parent
007b632017
commit
5b2c568eb5
@ -156,11 +156,24 @@ function mail_times($acc_id, array &$times, $prefix='mail_')
|
||||
$mail_ui->get_rows($query, $rows, $readonlys);
|
||||
$fetchtime = microtime(true);
|
||||
|
||||
if (isset($_GET['uid']) && (int)$_GET['uid'] > 0)
|
||||
{
|
||||
$uid = (int)$_GET['uid'];
|
||||
}
|
||||
else // use uid of first returned row
|
||||
{
|
||||
$row = array_shift($rows);
|
||||
$uid = $row['uid'];
|
||||
}
|
||||
$mail_ui->get_load_email_data($uid, null, 'INBOX');
|
||||
$bodytime = microtime(true);
|
||||
|
||||
$times += array(
|
||||
$prefix.'login' => $logintime - $starttime,
|
||||
$prefix.'listmailboxes' => $listmailboxestime - $logintime,
|
||||
$prefix.'fetch' => $fetchtime - $listmailboxestime,
|
||||
$prefix.'total' => $fetchtime - $starttime,
|
||||
$prefix.'body' => $bodytime - $fetchtime,
|
||||
//$prefix.'mboxes' => $mboxes,
|
||||
);
|
||||
unset($mboxes);
|
||||
|
Loading…
Reference in New Issue
Block a user