Skip to content
GitLab
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
64406202
Commit
64406202
authored
Apr 29, 2003
by
Leigh B. Stoller
Browse files
Fix up idx bug Mac spotted.
parent
63439cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/libdb.pm.in
View file @
64406202
...
...
@@ -3029,7 +3029,7 @@ sub GatherSwapStats($$$$$;$)
DBQueryWarn
(
"update experiment_stats set "
.
" swap_errors=swap_errors+1, "
.
" swap_exitcode=$ecode "
.
"where pid='$pid' and eid='$eid' and idx=idx"
);
"where pid='$pid' and eid='$eid' and idx=
$
idx"
);
if
($
mode
eq
TBDB_STATS_SWAPIN
||
$
mode
eq
TBDB_STATS_START
||
...
...
@@ -3045,7 +3045,7 @@ sub GatherSwapStats($$$$$;$)
if
($
mode
eq
TBDB_STATS_TERMINATE
)
{
DBQueryWarn
(
"update experiment_stats "
.
"set destroyed=now() "
.
"where pid='$pid' and eid='$eid' and idx=idx"
);
"where pid='$pid' and eid='$eid' and idx=
$
idx"
);
}
#
...
...
@@ -3062,7 +3062,7 @@ sub GatherSwapStats($$$$$;$)
" UNIX_TIMESTAMP(now()) - "
.
" UNIX_TIMESTAMP(swapin_last) "
.
" from experiment_stats "
.
"where pid='$pid' and eid='$eid' and idx=idx"
);
"where pid='$pid' and eid='$eid' and idx=
$
idx"
);
if
($
query_result
&&
$
query_result
->
numrows
)
{
($
pnodes
,$
vnodes
,$
duration
)
=
$
query_result
->
fetchrow_array
;
...
...
@@ -3077,7 +3077,7 @@ sub GatherSwapStats($$$$$;$)
if
($
flags
&
$
TBDB_STATS_FLAGS_IDLESWAP
)
{
DBQueryWarn
(
"update experiment_stats "
.
"set idle_swaps=idle_swaps+1 "
.
"where pid='$pid' and eid='$eid' and idx=idx"
);
"where pid='$pid' and eid='$eid' and idx=
$
idx"
);
}
}
...
...
@@ -3140,7 +3140,7 @@ sub GatherSwapStats($$$$$;$)
"set ${tmp}_count=${tmp}_count+1, "
.
" ${tmp}_last=now(), "
.
" swapin_duration=swapin_duration+${duration} "
.
"where pid='$pid' and eid='$eid' and idx=idx"
);
"where pid='$pid' and eid='$eid' and idx=
$
idx"
);
}
}
...
...
@@ -3164,7 +3164,7 @@ sub GatherSwapStats($$$$$;$)
my
$
pnodes
=
$
query_result
->
numrows
;
DBQueryWarn
(
"update experiment_stats set pnodes=$pnodes "
.
"where pid='$pid' and eid='$eid' and idx=idx"
);
"where pid='$pid' and eid='$eid' and idx=
$
idx"
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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