Merge pull request #113 from sash-kan/patch-1
typos: "interval" has a value, option->options
This commit is contained in:
commit
83dff597ce
|
@ -120,7 +120,7 @@
|
||||||
|
|
||||||
$longopts = array("log:",
|
$longopts = array("log:",
|
||||||
"tasks:",
|
"tasks:",
|
||||||
"interval",
|
"interval:",
|
||||||
"quiet",
|
"quiet",
|
||||||
"help");
|
"help");
|
||||||
|
|
||||||
|
@ -142,14 +142,14 @@
|
||||||
|
|
||||||
if (isset($options["tasks"])) {
|
if (isset($options["tasks"])) {
|
||||||
_debug("Set to spawn " . $options["tasks"] . " children.");
|
_debug("Set to spawn " . $options["tasks"] . " children.");
|
||||||
$max_jobs = $option["tasks"];
|
$max_jobs = $options["tasks"];
|
||||||
} else {
|
} else {
|
||||||
$max_jobs = MAX_JOBS;
|
$max_jobs = MAX_JOBS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($options["interval"])) {
|
if (isset($options["interval"])) {
|
||||||
_debug("Spawn interval: " . $options["interval"] . " seconds.");
|
_debug("Spawn interval: " . $options["interval"] . " seconds.");
|
||||||
$spawn_interval = $option["interval"];
|
$spawn_interval = $options["interval"];
|
||||||
} else {
|
} else {
|
||||||
$spawn_interval = SPAWN_INTERVAL;
|
$spawn_interval = SPAWN_INTERVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue