diff options
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 2 | ||||
-rw-r--r-- | doc/bugs/syntax_error_in_aggregate.mdwn | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 07c557bcd..8044f1ed4 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -424,7 +424,7 @@ sub expire () { #{{{ grep { exists $_->{page} && $_->{feed} eq $feed->{name} } values %guids) { 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}) { debug(sprintf(gettext("expiring %s (%s days old)"), $item->{page}, int($days_old))); diff --git a/doc/bugs/syntax_error_in_aggregate.mdwn b/doc/bugs/syntax_error_in_aggregate.mdwn index 4ad57e771..1e69e7fab 100644 --- a/doc/bugs/syntax_error_in_aggregate.mdwn +++ b/doc/bugs/syntax_error_in_aggregate.mdwn @@ -7,3 +7,5 @@ Current git : 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. + +[[done]] |