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
3825b20d
Commit
3825b20d
authored
Nov 27, 2012
by
Mike Hibler
Browse files
Use a slightly more general hack for excluding "system" experiments.
parent
00fffc89
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/rusage_viz.php
View file @
3825b20d
<?php
#
# Copyright (c) 2000-20
08
University of Utah and the Flux Group.
# Copyright (c) 2000-20
12
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -73,9 +73,9 @@ $queries["project"] = "select r.pid as project,count(r.node_id) as pcs," .
" from reserved as r"
.
" left join nodes as n on r.node_id=n.node_id"
.
" left join node_types as nt on n.type=nt.type"
.
" left join experiments as e on (r.pid=e.pid and r.eid=e.eid)"
.
" where nt.class='pc'"
.
" and !(r.pid='emulab-ops' and (r.eid='wifi-holding' or r.eid='hwdown'"
.
" or r.eid='oddball' or r.eid='reloading'))"
.
" and !(r.pid='emulab-ops' and e.noswap_reason='System Experiment')"
.
" group by r.pid order by pcs desc"
;
$queries
[
"experiment"
]
=
"select concat_ws(' / ',r.pid,r.eid) as experiment,"
.
...
...
@@ -89,9 +89,7 @@ $queries["experiment"] = "select concat_ws(' / ',r.pid,r.eid) as experiment," .
" left join node_activity as na on r.node_id=na.node_id"
.
" left join experiments as e on (r.pid=e.pid and r.eid=e.eid)"
.
" where nt.class='pc'"
.
" and !(r.pid='emulab-ops' and (r.eid='wifi-holding' or r.eid='hwdown'"
.
" or r.eid='oddball' or r.eid='opsnodes' or r.eid='plab-monitor'"
.
" or r.eid='plab-testing' or r.eid='plabnodes' or r.eid='reloading'))"
.
" and !(r.pid='emulab-ops' and e.noswap_reason='System Experiment')"
.
" group by r.pid,r.eid order by pcs desc"
;
$queries
[
"user"
]
=
"select u.uid as user,count(r.node_id) as pcs,"
.
...
...
@@ -102,9 +100,7 @@ $queries["user"] = "select u.uid as user,count(r.node_id) as pcs," .
" left join experiments as e on (r.pid=e.pid and r.eid=e.eid)"
.
" left join users as u on e.swapper_idx=u.uid_idx"
.
" where nt.class='pc'"
.
" and !(r.pid='emulab-ops' and (r.eid='wifi-holding' or r.eid='hwdown'"
.
" or r.eid='oddball' or r.eid='opsnodes' or r.eid='plab-monitor'"
.
" or r.eid='plab-testing' or r.eid='plabnodes' or r.eid='reloading'))"
.
" and !(r.pid='emulab-ops' and e.noswap_reason='System Experiment')"
.
" group by (u.uid) order by pcs desc"
;
$queries
[
"nodetype"
]
=
"select n.type as nodetype,"
.
...
...
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