]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Status.pm
* Add missing subtraction from bug_archiveable
[debbugs.git] / Debbugs / Status.pm
index 2dc7440217ee20926c7eaf2c33f01b54597489df..6b6fabd3654442c21be344740b31e578268a860e 100644 (file)
@@ -698,7 +698,7 @@ sub bug_archiveable{
               last if $buggy eq 'found';
               $min_fixed_time = min($time_versions{$version},$min_fixed_time);
          }
-         $min_archive_days = max($min_archive_days,ceil((time - $min_fixed_time)/(60*60*24)));
+         $min_archive_days = max($min_archive_days,ceil($config{remove_age} - (time - $min_fixed_time)/(60*60*24)));
      }
      # If $param{ignore_time}, then we should ignore time.
      if ($param{ignore_time}) {