mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
output time in secs for indexing
This commit is contained in:
parent
bc5aa7703c
commit
b1b16e1008
|
@ -192,6 +192,7 @@ $stats['folder']['update'] = 0;
|
|||
$stats['document']['add'] = 0;
|
||||
$stats['document']['unchanged'] = 0;
|
||||
$stats['document']['update'] = 0;
|
||||
$stats['time']['total'] = time();
|
||||
$numdocs = $fulltextservice->Indexer()->count();
|
||||
$folder = $dms->getFolder($settings->_rootFolderID);
|
||||
/* if numdocs is 0, then there is no need to check if a document/folder is already
|
||||
|
@ -201,8 +202,10 @@ tree($dms, $fulltextservice, $folder,'', $numdocs);
|
|||
|
||||
$index->commit();
|
||||
$index->optimize();
|
||||
$stats['time']['total'] = time()-$stats['time']['total'];
|
||||
|
||||
echo PHP_EOL;
|
||||
echo $themes->black("Total Time: ".$stats['time']['total'].' sec.').PHP_EOL;
|
||||
echo $themes->black("Documents").PHP_EOL;
|
||||
echo $themes->black(" added: ".$stats['document']['add']).PHP_EOL;
|
||||
echo $themes->black(" updated: ".$stats['document']['update']).PHP_EOL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user