diff options
author | friendica <info@friendica.com> | 2015-03-19 15:24:09 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-19 15:24:09 -0700 |
commit | 24ebaaf0f70f3452c72c0ac4017bff1144728da8 (patch) | |
tree | 1b9d60532db6488e2bf8e8191ab1d3fedd91f1b2 /include | |
parent | 63683734a21e90149c464f7e9b03e7aedc29868e (diff) | |
download | volse-hubzilla-24ebaaf0f70f3452c72c0ac4017bff1144728da8.tar.gz volse-hubzilla-24ebaaf0f70f3452c72c0ac4017bff1144728da8.tar.bz2 volse-hubzilla-24ebaaf0f70f3452c72c0ac4017bff1144728da8.zip |
ratenotif: loop oddity
Diffstat (limited to 'include')
-rw-r--r-- | include/ratenotif.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/ratenotif.php b/include/ratenotif.php index 8be3b15b7..63fd7c2ee 100644 --- a/include/ratenotif.php +++ b/include/ratenotif.php @@ -94,21 +94,21 @@ function ratenotif_run($argv, $argc){ dbesc($n), dbesc(json_encode($encoded_item)) ); - } - $deliver[] = $hash; - if(count($deliver) >= $deliveries_per_process) { - proc_run('php','include/deliver.php',$deliver); - $deliver = array(); - if($interval) - @time_sleep_until(microtime(true) + (float) $interval); - } + $deliver[] = $hash; + if(count($deliver) >= $deliveries_per_process) { + proc_run('php','include/deliver.php',$deliver); + $deliver = array(); + if($interval) + @time_sleep_until(microtime(true) + (float) $interval); + } + } // catch any stragglers if(count($deliver)) { - proc_run('php','include/deliver.php',$deliver); + proc_run('php','include/deliver.php',$deliver); } } } |