aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-12 09:03:49 +0000
committerMario <mario@mariovavti.com>2022-12-12 09:03:49 +0000
commite3a19469eb6940249ad87662399d14dbf2a79847 (patch)
treee793f2476b550eb93bb141143876e2019dd44021 /include/network.php
parent45f8e43be425b9718aa9ac819256ea407af900f0 (diff)
downloadvolse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.tar.gz
volse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.tar.bz2
volse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.zip
bring back poll and delivery interval
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/network.php b/include/network.php
index 7deffe06c..52c21d808 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1476,12 +1476,12 @@ function do_delivery($deliveries, $force = false) {
}
return;
}
-
+ */
$interval = ((get_config('system','delivery_interval') !== false)
? intval(get_config('system','delivery_interval')) : 2 );
- */
+
$deliveries_per_process = intval(get_config('system','delivery_batch_count'));
@@ -1500,10 +1500,10 @@ function do_delivery($deliveries, $force = false) {
if(count($deliver) >= $deliveries_per_process) {
Zotlabs\Daemon\Master::Summon(['Deliver', $deliver]);
$deliver = [];
- /*
- if($interval)
+
+ if($interval) {
@time_sleep_until(microtime(true) + (float) $interval);
- */
+ }
}
}