Index: plugins/FeedsDataProcessor.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feeds/plugins/Attic/FeedsDataProcessor.inc,v
retrieving revision 1.24.2.3
diff -r1.24.2.3 FeedsDataProcessor.inc
8a9,11
> // Create or delete FEEDS_DATA_BATCH_SIZE at a time.
> define('FEEDS_DATA_BATCH_SIZE', 200);
> 
17c20
<   public function process(FeedsImportBatch $batch, FeedsSource $source) {
---
>     public function process(FeedsImportBatch $batch, FeedsSource $source) {
19,20d21
<     // Count number of created and updated nodes.
<     $inserted  = $updated = 0;
22a24,29
>     // Keep track of processed items in this pass, set total number of items.
>     $processed = 0;
>     if (!$batch->getTotal(FEEDS_PROCESSING)) {
>       $batch->setTotal(FEEDS_PROCESSING, count($batch->items));
>     }
> 
44c51
<           $updated++;
---
>           $batch->updated++;
48c55
<           $inserted++;
---
>           $batch->created++;
50a58,63
> 
>       $processed++;
>       if ($processed >= variable_get('feeds_data_batch_size', FEEDS_DATA_BATCH_SIZE)) {
>         $batch->setProgress(FEEDS_PROCESSING, $batch->created + $batch->updated);
>         return;
>       }
54,55c67,68
<     if ($inserted) {
<       drupal_set_message(format_plural($inserted, 'Created @number item.', 'Created @number items.', array('@number' => $inserted)));
---
>     if ($batch->created) {
>       drupal_set_message(format_plural($batch->created, 'Created @number item.', 'Created @number items.', array('@number' => $batch->created)));
57,58c70,71
<     if ($updated) {
<       drupal_set_message(format_plural($updated, 'Updated @number item.', 'Updated @number items.', array('@number' => $updated)));
---
>     elseif ($batch->updated) {
>       drupal_set_message(format_plural($batch->updated, 'Updated @number item.', 'Updated @number items.', array('@number' => $batch->updated)));
60c73
<     if (!$inserted && !$updated) {
---
>     else {
62a76,77
> 
>     $batch->setProgress(FEEDS_PROCESSING, FEEDS_BATCH_COMPLETE);
