/[pdpsoft]/nl.nikhef.ndpf.groupviews/trunk/cores.awk
ViewVC logotype

Contents of /nl.nikhef.ndpf.groupviews/trunk/cores.awk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2623 - (show annotations) (download)
Wed May 22 14:50:02 2013 UTC (8 years, 8 months ago) by templon
File size: 301 byte(s)
make changes to have sections on the plot (and associated colors)
for "unused" capacity, "offline" capacity, and "other" jobs not
represented in the top 8 groups.

1 BEGIN { tcores = 0; ocores = 0 }
2 $1 ~ /state/ { state = $3 ; njobs = 0}
3 $1 ~ /np/ { ncores = $3 }
4 $1 ~ /jobs/ { njobs = NF -2 }
5 $1 ~ /status/ {
6 tcores += ncores
7 if (state ~ /offline/) {
8 ocores += ncores - njobs
9 }
10 }
11
12 END {
13 print tcores > "nslots"
14 print ocores > "oslots"
15 }

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28