Skip to content

Commit

Permalink
Added some flush
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jul 7, 2003
1 parent 040c7b7 commit 11c1d52
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backup/restore_execute.html
Expand Up @@ -107,6 +107,7 @@
$coursecreator_count = 0;
$admin_count = 0;
$other_count = 0;
$counter = 0;
//Iterate, filling counters
foreach ($recs as $rec) {
//Get full record, using backup_getids
Expand All @@ -128,6 +129,15 @@
} else if ($record->info == "new" or $record->info == "exists") {
$other_count++;
}
//Do some output
$counter++;
if ($counter % 10 == 0) {
echo ".";
if ($counter % 200 == 0) {
echo "<br>";
}
backup_flush(300);
}
}
//Now print information gathered
echo " (new: ".$new_count.", existing: ".$exists_count.")";
Expand Down Expand Up @@ -233,4 +243,8 @@
error ("An error has ocurred");
}

//Print final message
print_simple_box(get_string("restorefinished"),"CENTER");
print_continue($moodle_home."/course/view.php?id=".$restore->course_id);

?>

0 comments on commit 11c1d52

Please sign in to comment.