summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNozomi Anzai2010-07-21 02:47:13 +0000
committerNozomi Anzai2010-07-21 02:47:13 +0000
commit740e3c960ca2596d8bfc2db8275deee26ba09e3f (patch)
treeb40a02e0bcbb2b873efe2236cfc5a315a989e421
parent642a864eeab09eb36b91de9a12073741287ac71c (diff)
Replace split() to explode()
-rw-r--r--nodeStatus.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/nodeStatus.php b/nodeStatus.php
index ae67553..9fccd78 100644
--- a/nodeStatus.php
+++ b/nodeStatus.php
@@ -62,7 +62,7 @@ for($i=0; $i<$nodeCount; $i++) {
} else {
$ret = $ret['SUCCESS'];
}
- $nodeInfo[$i] = split(" ", $ret);
+ $nodeInfo[$i] = explode(" ", $ret);
$nodeInfo[$i][3] = sprintf('%.3f', $nodeInfo[$i][3] / $MAX_VALUE);
/* node is active? */
if ($nodeInfo[$i][2] != 3)