From c3677f4230980aa2491be2133802c78b4f85d910 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 10 Sep 2009 08:53:10 -0700 Subject: [PATCH] * set the date to zero in cases where the date is empty --- examples/debian/postpa/22oldbugs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/debian/postpa/22oldbugs b/examples/debian/postpa/22oldbugs index 09428a1..bff889d 100755 --- a/examples/debian/postpa/22oldbugs +++ b/examples/debian/postpa/22oldbugs @@ -45,7 +45,9 @@ count_bugs(function => sub { return () if @merged and $merged[0] < $d{bug}; # 3600*24*30 (30 days) - my $cmonths = int(($startdate - $status->{date}) / 2592000); + my $cmonths = int(($startdate - + length($status->{date})?$status->{date}:0) / + 2592000); if ($cmonths >= 24 && !length($status->{forwarded}) && !$excludepackage{$d{pkg}}) { $oldpackage{$d{bug}} = $d{pkg}; -- 2.39.2