incorrect image counts in amcheckdump summary

Nathan Stratton Treadway <[email protected]> Wed, 15 Nov 2017 12:44:48 -0500
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
(Amanda 3.5:)

I was running amcheckdump against a run with 9 DLEs each sent to two
storages.  When I ran the check with both storages available, the final
line of the run said:
  All images (18) successfully validated
, as expected.

But when I ran it with the offsite storage unavailable, the final lines
implied there were 27 images to check:
  9 images successfully validated.
  18 images not validated.

The attached patch resolves the problem for me:
  9 images successfully validated.
  9 images not validated.
 
							Nathan 


----------------------------------------------------------------------------
Nathan Stratton Treadway  -  [email protected]  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239
amanda_3.5_CheckDump-fix-counts.diff (text/x-diff, 476 B)
--- perl/Amanda/CheckDump.pm_v3.5.orig	2017-11-15 00:03:42.000000000 -0500
+++ perl/Amanda/CheckDump.pm	2017-11-15 12:27:48.149743838 -0500
@@ -189,7 +189,7 @@
 			source_line     => __LINE__,
 			code            => 2700009,
 			nb_image        => $self->{'nb_image'},
-			image_validated => $self->{'image_validate'},
+			image_validated => $self->{'image_validated'},
 			image_failed    => $self->{'image_failed'},
 			severity        => $Amanda::Message::ERROR));
 	    }