parent
45a5e8e972
commit
c23cb312b4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue