diff --git a/scripts/send-renewal-notices.plx b/scripts/send-renewal-notices.plx index 1c06b34..8883045 100644 --- a/scripts/send-renewal-notices.plx +++ b/scripts/send-renewal-notices.plx @@ -205,7 +205,7 @@ my $headerInfo = "$subject\n" . ("=" x length($subject)) . foreach my $type (keys %lapsedCounter) { $headerInfo .= sprintf("%7s: Lapsed Count: %3d Active Count: %3d Percent of %7ss Lapsed: %2.2f%\n", - $type, $lapsedCounter{$type}, $activeCounter{$type}, ($lapsedCounter{$type} / $activeCounter{$type}) * 100.00); + $type, $lapsedCounter{$type}, $activeCounter{$type}, ($lapsedCounter{$type} / ($lapsedCounter{$type} + $activeCounter{$type})) * 100.00); } $headerInfo .= "\n"; my $emailText .= $headerInfo;