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
bbd2e557
Commit
bbd2e557
authored
Jan 21, 2010
by
Leigh B. Stoller
Browse files
Add admin link for admins.
parent
4144e7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showsumstats.php3
View file @
bbd2e557
...
...
@@ -134,7 +134,7 @@ function showsummary ($showby) {
switch
(
$showby
)
{
case
"projects"
:
$which
=
"pid"
;
$table
=
"project_stats"
;
$table
=
"project_stats
_backup
"
;
$title
=
"Project Summary Stats (Epoch)"
;
$link
=
"showproject.php3?pid="
;
$wclause
=
"where pid!='
$TBOPSPID
'"
;
...
...
@@ -142,7 +142,7 @@ function showsummary ($showby) {
break
;
case
"users"
:
$which
=
"uid"
;
$table
=
"user_stats"
;
$table
=
"user_stats
_backup
"
;
$title
=
"User Summary Stats (Epoch)"
;
$link
=
"showuser.php3?user="
;
$wclause
=
""
;
...
...
@@ -161,7 +161,7 @@ function showsummary ($showby) {
"exptpreload_count+exptstart_count as expt_new, "
.
"exptswapmod_count as expt_swapmods, "
.
"u.usr_name, s.uid_idx "
.
"from
user_stats
as s "
.
"from
$table
as s "
.
"left join users as u on u.uid_idx=s.uid_idx "
.
"
$wclause
"
.
"order by
$order
"
);
...
...
@@ -443,8 +443,8 @@ function showrange ($showby, $range) {
DBQueryFatal
(
"select s.exptidx,s.pid,u.uid,r.pnodes,r.vnodes, "
.
" swapin_time,swapout_time,swapmod_time,byswapmod, "
.
" e.eid_uuid,r.idx,r.lastidx,byswapin "
.
" from experiment_resources as r "
.
"left join experiment_stats as s on "
.
" from experiment_resources
_backup
as r "
.
"left join experiment_stats
_backup
as s on "
.
" r.exptidx=s.exptidx "
.
"left join experiments as e on e.idx=s.exptidx "
.
"left join users as u on u.uid_idx=r.uid_idx "
.
...
...
@@ -541,13 +541,13 @@ function showrange ($showby, $range) {
# current experiment.
#
if
(
$swapin_time
==
0
)
{
if
(
$debug
)
if
(
1
)
echo
"No swapin time:
$exptidx
,
$rsrcidx
<br>
\n
"
;
continue
;
}
if
(
$swapout_time
==
0
&&
$swapmod_time
==
0
)
{
if
(
!
isset
(
$uuid
))
{
if
(
$debug
)
if
(
1
)
echo
"No swapout/swapmod time:
$exptidx
,
$rsrcidx
<br>
\n
"
;
continue
;
}
...
...
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