Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
872e383f
Commit
872e383f
authored
Jan 15, 2004
by
Mac Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor update - nocluster option to print as one big machine.
parent
5a1ab5a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
db/stategraph.in
db/stategraph.in
+12
-5
No files found.
db/stategraph.in
View file @
872e383f
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -89,6 +89,7 @@ EOF
my
$vcgtag
=
"
-vcg
";
my
$dottag
=
"
-dot
";
my
$cleanup
=
1
;
my
$nocluster
=
1
;
if
(
!
$dot
&&
!
$vcg
)
{
$dot
=
1
;
}
if
(
!
$ps
&&
!
$gif
&&
!
$png
)
{
$ps
=
1
;
}
if
(
!
(
$dot
&&
$vcg
))
{
$vcgtag
=
"";
$dottag
=
"";
}
...
...
@@ -111,8 +112,11 @@ if ($vcg) {
if
(
$dot
)
{
open
(
TMPN
,"
>
$filename2
");
print
TMPN
"
digraph StateGraph {
\n
node [shape=ellipse]
\n
edge [fontsize=8]
\n
";
#print TMPN "digraph StateGraph {\n node [shape=ellipse]\n graph [clusterrank=global]\n";
if
(
!
$nocluster
)
{
print
TMPN
"
digraph StateGraph {
\n
node [shape=ellipse]
\n
edge [fontsize=8]
\n
";
}
else
{
print
TMPN
"
digraph StateGraph {
\n
node [shape=ellipse]
\n
edge [fontsize=8]
\n
graph [clusterrank=global]
\n
";
}
#print TMPN "digraph StateGraph {\n node [shape=ellipse]\n";
}
...
...
@@ -283,8 +287,11 @@ sub mkstates {
}
print
"
Adding node '
$n
'
\n
"
if
(
$v
);
print
TMP
"
node: { title:
\"
$n
\"
label:
\"
$l
\"
}
\n
"
if
$vcg
;
print
TMPN
"
$n
[label=
\"
$s
\"
];
\n
"
if
$dot
;
#print TMPN " $n [label=\"$m\\n$s\"];\n" if $dot;
if
(
!
$nocluster
)
{
print
TMPN
"
$n
[label=
\"
$s
\"
];
\n
"
if
$dot
;
}
else
{
print
TMPN
"
$n
[label=
\"
$m
\\
n
$s
\"
];
\n
"
if
$dot
;
}
#print TMPN " $n;\n" if $dot;
$states
{
$n
}
=
1
;
}
...
...
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