diff options
author | Joey Hess <joey@kitenet.net> | 2010-07-06 16:02:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-07-06 16:02:41 -0400 |
commit | c23cb312b457c1ac2e0682649fc7ef7035103681 (patch) | |
tree | 84bd678d73ea609fd78321dcfebc1625b70474be /IkiWiki | |
parent | 45a5e8e972b3f56fbc2b32aa7b9c218c076da7e3 (diff) | |
download | ikiwiki-c23cb312b457c1ac2e0682649fc7ef7035103681.tar ikiwiki-c23cb312b457c1ac2e0682649fc7ef7035103681.tar.gz |
revert bugfix
Not needed; lastupdate will be 0 for new feeds.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 11 |
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/; |