Add some more time every 100 rows as long as things are still going

This commit is contained in:
Nathan Gray 2014-05-05 20:44:51 +00:00
parent f5dc2d6903
commit 4d64856fcd

View File

@ -170,6 +170,12 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor
if($success) $count++; if($success) $count++;
// Add some more time
if($success && $import_csv->get_current_position() > 0 && $import_csv->get_current_position() % 100 == 0)
{
set_time_limit(10);
}
// Keep a few records for preview, but process the whole file // Keep a few records for preview, but process the whole file
if($this->dry_run && $import_csv->get_current_position() < $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']) if($this->dry_run && $import_csv->get_current_position() < $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'])
{ {