# For manual moves made from the web interface.
our $adminpass = undef;
+# How often to poll the target, in seconds.
+our $poll_frequency = 1.0;
+
eval {
my $config_filename = $ENV{'REMOTEGLOT_CONFIG'} // 'config.local.pm';
require $config_filename;
};
if ($@) {
warn "$url: $@";
- $http_timer = AnyEvent->timer(after => 1.0, cb => sub {
+ $http_timer = AnyEvent->timer(after => $remoteglotconf::poll_frequency, cb => sub {
fetch_pgn($url);
});
}
}
}
- $http_timer = AnyEvent->timer(after => 1.0, cb => sub {
+ $http_timer = AnyEvent->timer(after => $remoteglotconf::poll_frequency, cb => sub {
fetch_pgn($url);
});
}