summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-27 12:41:28 +0200
committerBjörn Geiger2011-07-27 12:41:28 +0200
commitdad33903210ea88d7a7183e0b0e52ca2d4a4874c (patch)
treee263ed4133fca1607b546b951f920be6521be1c8 /application
parentverschiedene Korrekturen (diff)
downloadpoolctrl-dad33903210ea88d7a7183e0b0e52ca2d4a4874c.tar.gz
poolctrl-dad33903210ea88d7a7183e0b0e52ca2d4a4874c.tar.xz
poolctrl-dad33903210ea88d7a7183e0b0e52ca2d4a4874c.zip
minor
Diffstat (limited to 'application')
-rw-r--r--application/controllers/GearmanController.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/application/controllers/GearmanController.php b/application/controllers/GearmanController.php
index 9165991..1a6ddeb 100644
--- a/application/controllers/GearmanController.php
+++ b/application/controllers/GearmanController.php
@@ -80,9 +80,11 @@ class GearmanController extends Zend_Controller_Action
}
public function bootAction() {
+ $eventName = 'test';
+ $updateRate = 1;
$clients = array(
- 'eventName' => "test",
- 'updateRate' => '1',
+ 'eventName' => $eventName,
+ 'updateRate' => $updateRate,
'clients' => array(
0 => array('id' => '1', 'ip' =>'132.230.4.1', 'mac' =>''),
1 => array('id' => '2', 'ip' =>'132.230.4.2', 'mac' =>''),
@@ -119,7 +121,7 @@ class GearmanController extends Zend_Controller_Action
$ipString = json_encode($clients);
$id = 1;
- $result = $this->gearmanClient->do("boot", $ipString, 'boot' . $id);
+ $result = $this->gearmanClient->do("boot", $ipString, 'boot' . $eventName);
if (! $this->gearmanClient->runTasks())
{
echo "ERROR " . $gmc->error() . "\n";