Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
a2ce676a
Commit
a2ce676a
authored
Oct 25, 2011
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug from previous revision.
parent
1dc78daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
tbsetup/libptop_new.pm.in
tbsetup/libptop_new.pm.in
+10
-10
No files found.
tbsetup/libptop_new.pm.in
View file @
a2ce676a
...
...
@@ -1008,15 +1008,15 @@ sub calculateSwitch($)
|| ($role eq '
testnodefoo
' && $self->node()->isswitch()));
}
#sub islocal($)
#{
# if (! defined($_[0]->{'
IS_LOCAL
'})) {
# $_[0]->{'
IS_LOCAL
'} = $_[0]->calculateLocal();
# }
# return $_[0]->{'
IS_LOCAL
'};
#}
sub islocal($)
{
if (! defined($_[0]->{'
IS_LOCAL
'})) {
$_[0]->{'
IS_LOCAL
'} = $_[0]->calculateLocal();
}
return $_[0]->{'
IS_LOCAL
'};
}
sub calculateLocal($)
{
my ($self) = @_;
my $node = $self->node();
...
...
@@ -1090,7 +1090,7 @@ sub willPrint($)
return $self->{'
WILL_PRINT
'};
}
sub calculatePrint($;$)
sub calculate
Will
Print($;$)
{
my ($self, $tagRef) = @_;
my $node = $self->node();
...
...
@@ -1125,7 +1125,7 @@ sub calculatePrint($;$)
$
tags
{$
self
->
name
()}
=
1
;
my
$
parent
=
$
node
->
phys_nodeid
();
if
(
! exists($tags{$parent})) {
$
result
=
$
result
&&
$
nodeList
{$
parent
}->
calculatePrint
(\%
tags
);
$
result
=
$
result
&&
$
nodeList
{$
parent
}->
calculate
Will
Print
(\%
tags
);
}
}
return
$
result
;
...
...
Write
Preview
Markdown
is supported
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