summaryrefslogtreecommitdiffstats
path: root/application/controllers/GearmanController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-13 14:13:34 +0200
committerBjörn Geiger2011-07-13 14:13:34 +0200
commita7814e67fab45d5586bc051375645f60463812bb (patch)
tree2afdead255e19ddbf1aaa90ed450c95de17201c8 /application/controllers/GearmanController.php
parentund nochmals (diff)
downloadpoolctrl-a7814e67fab45d5586bc051375645f60463812bb.tar.gz
poolctrl-a7814e67fab45d5586bc051375645f60463812bb.tar.xz
poolctrl-a7814e67fab45d5586bc051375645f60463812bb.zip
weitere Korrekturen
Diffstat (limited to 'application/controllers/GearmanController.php')
-rw-r--r--application/controllers/GearmanController.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/application/controllers/GearmanController.php b/application/controllers/GearmanController.php
index ab226f7..06de6bb 100644
--- a/application/controllers/GearmanController.php
+++ b/application/controllers/GearmanController.php
@@ -14,10 +14,14 @@ class GearmanController extends Zend_Controller_Action
{
$ipString = '132.230.4.1; 132.230.4.2; 132.230.4.3; 132.230.4.4; 132.230.4.5; 132.230.4.6; 132.230.4.7; 132.230.4.8; 132.230.4.9; 132.230.4.10; 132.230.4.11; 132.230.4.12; 132.230.4.13; 132.230.4.14; 132.230.4.15; 132.230.4.16; 132.230.4.17; 132.230.4.18; 132.230.4.19; 132.230.4.20; 132.230.4.21; 132.230.4.22; 132.230.4.23; 132.230.4.24; 132.230.4.25; 132.230.4.26; 132.230.4.27; 132.230.4.28; 132.230.4.29; 132.230.4.30';
- $result = $this->gearmanClient->do("boot", $ipString);
+ $result = $this->gearmanClient->do("somePing", $ipString);
$resultsExp = explode('; ', $result);
foreach($resultsExp as $result) {
- $results[] = json_decode($result);
+ $resultDecode = json_decode($result);
+ $resultDecode->rawoutput = sprintf('%s', $resultDecode->rawoutput);
+ $resultDecode->alive = sprintf('%s', $resultDecode->alive);
+ $resultDecode->rc = sprintf('%s', $resultDecode->rc);
+ $results[] = $resultDecode;
}
$this->view->results = $results;
}