Fixed bug where it was reporting the number of entries with retention
authorAndrew DeFaria <Andrew@DeFaria.com>
Sun, 18 Jul 2021 00:39:14 +0000 (17:39 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Sun, 18 Jul 2021 00:39:14 +0000 (17:39 -0700)
maps/bin/mapsscrub.pl
maps/lib/MAPS.pm

index 8ff4c51..91e77a8 100755 (executable)
@@ -119,7 +119,7 @@ while (my $rec = GetUser) {
 } # while
 
 # Now optimize the database
-if ($opts{optimized}) {
+if ($opts{optimize}) {
   OptimizeDB;
 
   $log->msg('Database optimized');
index d63f9b9..705196e 100644 (file)
@@ -544,6 +544,8 @@ sub CleanList(%) {
 
   return 0 unless $count;
 
+  $count = 0;
+
   my ($err, $errmsg) = $db->find($table, $condition);
 
   croak "Unable to find $params{type} entries for $condition - $errmsg" if $err;