From 1bfbae15f6a0f186d385c4ad073555de12c46e04 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 9 May 2009 19:03:00 +0000 Subject: Usability and performance improvements Significantly speed up the process by copying Gallery2 thumbnails and resizes wherever possible instead of regenerating them. This requires us to figure out the dimensions of the original G2 derivative and make sure that it matches in some reasonable way. To allow users to take advantage of this, calculate the optimal thumb and resize size to set in G3 to match what was used in G2. While we're at it, give the user some idea of how much data is available in G2 to import. --- modules/g2_import/helpers/g2_import_task.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/g2_import/helpers/g2_import_task.php') diff --git a/modules/g2_import/helpers/g2_import_task.php b/modules/g2_import/helpers/g2_import_task.php index bfcdf033..8fd8f72b 100644 --- a/modules/g2_import/helpers/g2_import_task.php +++ b/modules/g2_import/helpers/g2_import_task.php @@ -59,7 +59,7 @@ class g2_import_task_Core { } $modes = array("groups", "users", "albums", "photos", "comments", "done"); - while (!$task->done && microtime(true) - $start < 1) { + while (!$task->done && microtime(true) - $start < 1.5) { if ($i >= ($stats[$modes[$mode]] - 1)) { $i = 0; $mode++; -- cgit v1.2.3