summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-11-26 00:57:23 -0600
committerJesse Luehrs <doy@tozt.net>2009-11-26 00:57:23 -0600
commit281fcfebb17a16ae447b2c8cfc63b770e5ffe541 (patch)
tree61a07ee2d9057514e25f173bed77f5ed184ae056 /lib/Crawl/Bot.pm
parent7f590ed202074c7ca3fc7597d0f5848bc86fad79 (diff)
downloadcrawlbot-281fcfebb17a16ae447b2c8cfc63b770e5ffe541.tar.gz
crawlbot-281fcfebb17a16ae447b2c8cfc63b770e5ffe541.zip
update every 5 minutes (rather than 1), and make it configurable
Diffstat (limited to 'lib/Crawl/Bot.pm')
-rw-r--r--lib/Crawl/Bot.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm
index c5f6dcc..740a0bf 100644
--- a/lib/Crawl/Bot.pm
+++ b/lib/Crawl/Bot.pm
@@ -28,6 +28,12 @@ has cache_file => (
default => 'cache',
);
+has update_time => (
+ is => 'ro',
+ isa => 'Int',
+ default => 300,
+);
+
has issues => (
traits => ['Hash'],
isa => 'HashRef',
@@ -106,7 +112,7 @@ sub tick {
});
$self->save_cache;
- return 60;
+ return $self->update_time;
}
1;