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
bf22ebcb
Commit
bf22ebcb
authored
Feb 07, 2008
by
David Johnson
Browse files
Forgot this.
parent
c4112eaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/plab/libplabnodehist.pm.in
View file @
bf22ebcb
...
...
@@ -46,8 +46,8 @@ my $debug = 0;
#
members
is
the
number
of
consecutive
'success'
s
or
'failure'
s
in
#
the
sequence
.
#
sub
getNodeHistSequences
(;$$)
{
sub
getNodeHistSequences
(
$
;$$)
{
my
$
plcname
=
shift
;
my
$
fpnode
=
shift
;
my
$
fstime
=
shift
;
...
...
@@ -74,12 +74,15 @@ sub getNodeHistSequences(;$$) {
localtime
(
time
()
-
$
fstime
))
.
"'"
;
}
my
$
q
=
"select phys_node_id,unix_timestamp(timestamp),"
.
" status"
.
" from plab_nodehist"
.
" where component='node' and operation='create'"
.
" $filter"
.
" order by phys_node_id,timestamp"
;
my
$
q
=
"select pnh.phys_node_id,unix_timestamp(pnh.timestamp),"
.
" pnh.status"
.
" from plab_nodehist as pnh"
.
" left join plab_mapping as pm on pnh.phys_node_id=pm.node_id"
.
" left join plab_plc_info as ppi on pm.plc_idx=ppi.plc_idx"
.
" where component='node' and operation='create'"
.
" and ppi.plc_name='$plcname'"
.
" $filter"
.
" order by phys_node_id,timestamp"
;
if
($
debug
)
{
print
"query =
\"
$q
\"\n
"
;
...
...
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