master
Joey Hess 2010-07-06 15:59:08 -04:00
parent 7639474244
commit 45a5e8e972
1 changed files with 8 additions and 3 deletions

View File

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