summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
authorsash-kan <[email protected]>2013-04-01 16:38:33 +0400
committersash-kan <[email protected]>2013-04-01 16:38:33 +0400
commitec25336d6a1a0f276200e2ddc33f592fcf0ab530 (patch)
tree2a89f3ebf4edb52711e998b5353d0df6f2370b7d /update_daemon2.php
parentf058366d9bc6202f5918c55362022621b096633b (diff)
typos: "interval" has a value, option->options
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index c87f0c10a..2fbdd8b8c 100755
--- a/update_daemon2.php
+++ b/update_daemon2.php
@@ -120,7 +120,7 @@
$longopts = array("log:",
"tasks:",
- "interval",
+ "interval:",
"quiet",
"help");
@@ -142,14 +142,14 @@
if (isset($options["tasks"])) {
_debug("Set to spawn " . $options["tasks"] . " children.");
- $max_jobs = $option["tasks"];
+ $max_jobs = $options["tasks"];
} else {
$max_jobs = MAX_JOBS;
}
if (isset($options["interval"])) {
_debug("Spawn interval: " . $options["interval"] . " seconds.");
- $spawn_interval = $option["interval"];
+ $spawn_interval = $options["interval"];
} else {
$spawn_interval = SPAWN_INTERVAL;
}