parent
45a5e8e972
commit
c23cb312b4
|
@ -359,16 +359,11 @@ 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;
|
||||
}
|
||||
}
|
||||
$newfile=~s/\.new$/time/;
|
||||
open (OUT, ">", $newfile) || error("open $newfile: $!", $cleanup);
|
||||
if (defined $timestamp) {
|
||||
|
|
Loading…
Reference in New Issue