summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/aggregate.pm11
1 files changed, 3 insertions, 8 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index e473fc643..7789c4c2a 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -359,14 +359,9 @@ sub savestate () {
my $timestamp=undef;
foreach my $feed (keys %feeds) {
- if (defined $feeds{$feed}->{lastupdate}) {
- my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval};
- if (! defined $timestamp || $timestamp > $t) {
- $timestamp=$t;
- }
- }
- else {
- $timestamp=0;
+ my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval};
+ if (! defined $timestamp || $timestamp > $t) {
+ $timestamp=$t;
}
}
$newfile=~s/\.new$/time/;