From dd95a41941c6367aa1392afd29d7d5969f092898 Mon Sep 17 00:00:00 2001 From: Nils Grunwald Date: Sun, 4 Jul 2010 18:28:04 +0200 Subject: fixed too strict inequality test in BatchHandler to send the correct number of jobs --- lib/presque/RestQueueBatchHandler.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/presque/RestQueueBatchHandler.pm') diff --git a/lib/presque/RestQueueBatchHandler.pm b/lib/presque/RestQueueBatchHandler.pm index ef37045..48029a2 100644 --- a/lib/presque/RestQueueBatchHandler.pm +++ b/lib/presque/RestQueueBatchHandler.pm @@ -64,7 +64,7 @@ sub _get_jobs_from_queue { my $job = shift; push @$keys, $value; push @$jobs, $job; - if (++$pos >= ($batch_size - 1)) { + if (++$pos > ($batch_size - 1)) { $self->_finish_get($queue_name, $jobs, $keys); } else { -- cgit 1.4.1