aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-07 04:21:54 -0700
committerfriendica <info@friendica.com>2012-05-07 04:21:54 -0700
commite8b9b8a403f4b13ed1548c3a8e616cadcd65e43e (patch)
treee8029823ef3fd760d0a39d3cd48b7e8ba0fd3be8 /include/poller.php
parentc7f3e626d0bb141be86a8af6ffbe40768bc23069 (diff)
downloadvolse-hubzilla-e8b9b8a403f4b13ed1548c3a8e616cadcd65e43e.tar.gz
volse-hubzilla-e8b9b8a403f4b13ed1548c3a8e616cadcd65e43e.tar.bz2
volse-hubzilla-e8b9b8a403f4b13ed1548c3a8e616cadcd65e43e.zip
separate poll_interval from delivery_interval - default is the same.
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index f6553c846..6b12445d1 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -126,7 +126,9 @@ function poller_run($argv, $argc){
$force = true;
}
- $interval = ((get_config('system','delivery_interval') === false) ? 3 : intval(get_config('system','delivery_interval')));
+ $interval = intval(get_config('system','poll_interval'));
+ if(! $interval)
+ $interval = ((get_config('system','delivery_interval') === false) ? 3 : intval(get_config('system','delivery_interval')));
$sql_extra = (($manual_id) ? " AND `id` = $manual_id " : "");