master
Joey Hess 2008-09-27 12:50:39 -04:00
parent c84c7d6ea7
commit f181962dfc
2 changed files with 3 additions and 1 deletions

View File

@ -424,7 +424,7 @@ sub expire () { #{{{
grep { exists $_->{page} && $_->{feed} eq $feed->{name} } grep { exists $_->{page} && $_->{feed} eq $feed->{name} }
values %guids) { values %guids) {
if ($feed->{expireage}) { if ($feed->{expireage}) {
my $days_old = (time - ($IkiWiki::pagectime{$item->{page}} || 0) / 60 / 60 / 24; my $days_old = (time - ($IkiWiki::pagectime{$item->{page}} || 0)) / 60 / 60 / 24;
if ($days_old > $feed->{expireage}) { if ($days_old > $feed->{expireage}) {
debug(sprintf(gettext("expiring %s (%s days old)"), debug(sprintf(gettext("expiring %s (%s days old)"),
$item->{page}, int($days_old))); $item->{page}, int($days_old)));

View File

@ -7,3 +7,5 @@ Current git :
This prevents a Debian package build (due to `t/syntax.t`). This prevents a Debian package build (due to `t/syntax.t`).
Not knowing the units being used, I don't know where to add the missing parenthesis. Not knowing the units being used, I don't know where to add the missing parenthesis.
[[done]]