Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
62024122
Commit
62024122
authored
Apr 04, 2001
by
Leigh B. Stoller
Browse files
Minor variable error was causing a loop to terminate early; $i is
global unless declared local! Silly. Perl ain't a language!
parent
f3faac72
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/batch_daemon.in
View file @
62024122
...
...
@@ -86,7 +86,7 @@ my $DB = Mysql->connect("localhost", $DBNAME, "script", "none");
# Loop, looking for batch experiments that want to run.
#
while
(
1
)
{
my
(
$count
);
my
(
$count
,
$i
);
my
(
%row
,
%pending_row
);
#
...
...
@@ -255,9 +255,9 @@ sub dosomething($$)
my
$creator
=
$exphash
{'
creator_uid
'};
my
$longname
=
$exphash
{'
name
'};
# Global var
# Global var
s
$dirname
=
"
$batchdir
/
$pid
-
$eid
";
$nsfile
=
"
$dirname
/
$eid
.ns
";
$nsfile
=
"
$dirname
/
$eid
.ns
";
#
# Get some user information.
...
...
@@ -472,7 +472,7 @@ sub cancelexp($$)
sub
isexpdone
($)
{
my
(
%exphash
)
=
@_
;
my
(
$row
,
$done
);
my
(
$row
,
$done
,
$i
);
# Global vars
$eid
=
$exphash
{'
eid
'};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment