protect against 0 checked
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 16:47:52 +0000 (16:47 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 16:47:52 +0000 (16:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9014 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm

index 5e71990..30efda6 100644 (file)
@@ -2470,7 +2470,7 @@ sub staged_fts {
     my $excluded = $$summary_row{excluded};
 
     my $estimate = $visible;
-    if ( $total > $checked ) {
+    if ( $total > $checked && $checked ) {
         my $deleted_ratio = $deleted / $checked;
         my $exclution_ratio = $excluded / $checked;
         my $delete_adjusted_total = $total - ( $total * $deleted_ratio );