revert bugfix

Not needed; lastupdate will be 0 for new feeds.
master
Joey Hess 2010-07-06 16:02:41 -04:00
parent 45a5e8e972
commit c23cb312b4
1 changed files with 3 additions and 8 deletions

View File

@ -359,16 +359,11 @@ sub savestate () {
my $timestamp=undef; my $timestamp=undef;
foreach my $feed (keys %feeds) { foreach my $feed (keys %feeds) {
if (defined $feeds{$feed}->{lastupdate}) {
my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval}; my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval};
if (! defined $timestamp || $timestamp > $t) { if (! defined $timestamp || $timestamp > $t) {
$timestamp=$t; $timestamp=$t;
} }
} }
else {
$timestamp=0;
}
}
$newfile=~s/\.new$/time/; $newfile=~s/\.new$/time/;
open (OUT, ">", $newfile) || error("open $newfile: $!", $cleanup); open (OUT, ">", $newfile) || error("open $newfile: $!", $cleanup);
if (defined $timestamp) { if (defined $timestamp) {