daemon master: create some compatibility code

This commit is contained in:
redmatrix
2016-05-19 20:36:32 -07:00
parent 5b2474238e
commit 9cb1ac3de5
8 changed files with 34 additions and 449 deletions

View File

@@ -92,7 +92,7 @@ class Ratenotif {
$deliver[] = $hash;
if(count($deliver) >= $deliveries_per_process) {
proc_run('php','include/deliver.php',$deliver);
Master::Summon(array('Deliver',$deliver));
$deliver = array();
if($interval)
@time_sleep_until(microtime(true) + (float) $interval);
@@ -102,7 +102,7 @@ class Ratenotif {
// catch any stragglers
if(count($deliver)) {
proc_run('php','include/deliver.php',$deliver);
Master::Summon(array('Deliver',$deliver));
}
}
}