summaryrefslogtreecommitdiff
path: root/scripts/twitterstatusfetcher.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-05-07 02:07:31 -0700
committerZach Copley <zach@controlyourself.ca>2009-05-07 02:07:31 -0700
commitbc190595d1dfd56bf7e68597b3d574909eb27260 (patch)
tree4d9e9a67edeac7f8481de278c04f0cc984cf7e7f /scripts/twitterstatusfetcher.php
parent856e05a08ff8d09fbd580ed35906e3dda0475a0a (diff)
Added TwitterStatusFetcher into daemon startup and shutdown subsystem
Diffstat (limited to 'scripts/twitterstatusfetcher.php')
-rwxr-xr-xscripts/twitterstatusfetcher.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/twitterstatusfetcher.php b/scripts/twitterstatusfetcher.php
index e8819f665..9dfadc760 100755
--- a/scripts/twitterstatusfetcher.php
+++ b/scripts/twitterstatusfetcher.php
@@ -32,7 +32,7 @@ define('LACONICA', true);
define('MAXCHILDREN', 2);
define('POLL_INTERVAL', 60); // in seconds
-// Uncomment this to get useful console output
+// Uncomment this to get useful logging
define('SCRIPT_DEBUG', true);
require_once(INSTALLDIR . '/lib/common.php');
@@ -45,7 +45,7 @@ class TwitterStatusFetcher extends Daemon
function name()
{
- return 'twitterstatusfetcher';
+ return ('twitterstatusfetcher.generic');
}
function run()
@@ -130,7 +130,9 @@ class TwitterStatusFetcher extends Daemon
' secs before hitting Twitter again.');
}
- sleep(POLL_INTERVAL);
+ if (POLL_INTERVAL > 0) {
+ sleep(POLL_INTERVAL);
+ }
} while (true);
}
@@ -282,7 +284,7 @@ class TwitterStatusFetcher extends Daemon
// XXX: Figure out a better way to link Twitter replies?
$notice->saveReplies();
- // XXX: Do we want to polute our tag cloud with
+ // XXX: Do we want to pollute our tag cloud with
// hashtags from Twitter?
$notice->saveTags();
$notice->saveGroups();