From 15240e3894273e97f38fb69e4b77b05eec7b5847 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 12 Mar 2010 19:02:18 +0000 Subject: [PATCH] scale the response rate with the number of records processed so far git-svn-id: svn://svn.open-ils.org/ILS/trunk@15830 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm b/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm index 41cfe824a9..3493a459d0 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm @@ -248,6 +248,7 @@ sub process_spool { my $batch = new MARC::Batch ($marctype, $filename); $batch->strict_off; + my $response_scale = 10; my $count = 0; my $r = -1; while (try { $r = $batch->next } otherwise { $r = -1 }) { @@ -271,7 +272,8 @@ sub process_spool { } else { _add_auth_rec( $e, $xml, $queue_id, $purpose ) or return $e->die_event; } - $client->respond($count) if (++$count % 10) == 0; + $client->respond($count) if (++$count % $response_scale) == 0; + $response_scale *= 10 if ($count == ($response_scale * 10)); } catch Error with { my $error = shift; $logger->warn("Encountered a bad record at Vandelay ingest: ".$error); -- 2.11.0