my $count = 0;
my $removed = 0;
while (my ($k,$cand) = each %{$spots}) {
+ next if $k eq 'VERSION';
+ next if $k =~ /^O\|/;
+
if ($main::systime - $cand->[CTime] > $minspottime*2) {
delete $spots->{$k};
++$removed;
if (-e $cachefn) {
my $mt = (stat($cachefn))[9];
my $t = $main::systime - $mt || 1;
- my $p = difft($mt);
+ my $p = difft($mt, 2);
if ($t < $cache_valid) {
dbg("RBN:check_cache '$cachefn' spot cache exists, created $p ago and not too old");
my $fh = IO::File->new($cachefn);
if (exists $spots->{VERSION} && $spots->{VERSION} == $DATA_VERSION) {
# now clean out anything that is current
while (my ($k, $cand) = each %$spots) {
- next unless ref $cand;
+ next if $k eq 'VERSION';
+ next if $k =~ /^O\|/;
if (@$cand > CData) {
$spots->{$k} = [$cand->[CTime], $cand->[CQual]];
}