diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-12-12 23:26:45 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-12-12 23:26:45 +0100 |
commit | c9e170dfcc83a946fda7d4335c136ed40b3c579d (patch) | |
tree | 52ee00eefa5ab9f660f3dbf1135b33a11e1cb295 /Zotlabs/Lib/Libsync.php | |
parent | e3a19469eb6940249ad87662399d14dbf2a79847 (diff) | |
download | volse-hubzilla-c9e170dfcc83a946fda7d4335c136ed40b3c579d.tar.gz volse-hubzilla-c9e170dfcc83a946fda7d4335c136ed40b3c579d.tar.bz2 volse-hubzilla-c9e170dfcc83a946fda7d4335c136ed40b3c579d.zip |
queueworker: introduce new interval config queueworker.queue_interval - defaults to 500000 microseconds. No config UI yet.
Diffstat (limited to 'Zotlabs/Lib/Libsync.php')
-rw-r--r-- | Zotlabs/Lib/Libsync.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php index 2d6d86d78..f844c63b5 100644 --- a/Zotlabs/Lib/Libsync.php +++ b/Zotlabs/Lib/Libsync.php @@ -135,9 +135,7 @@ class Libsync { $info['collection_members'] = $r; } - - $interval = ((get_config('system', 'delivery_interval') !== false) - ? intval(get_config('system', 'delivery_interval')) : 2); + $interval = get_config('queueworker', 'queue_interval', 500000); logger('Packet: ' . print_r($info, true), LOGGER_DATA, LOG_DEBUG); @@ -173,7 +171,7 @@ class Libsync { */ if ($interval) { - @time_sleep_until(microtime(true) + (float)$interval); + usleep($interval); } } |