summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-01 05:50:13 -0700
committerAndrew Dolgov <[email protected]>2013-04-01 05:50:13 -0700
commit83dff597ce2c4fa0c303b83c369392c4eb19bafa (patch)
treeeab70f1e46c5992e2393cf6d9fbeecc88d11aa02
parentc2647e294cc67a3dc6f25b22084e6198e6656a1e (diff)
parentec25336d6a1a0f276200e2ddc33f592fcf0ab530 (diff)
Merge pull request #113 from sash-kan/patch-1
typos: "interval" has a value, option->options
-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;
}