175 |
ncol = len(colors) |
ncol = len(colors) |
176 |
for idx in range(ngr): |
for idx in range(ngr): |
177 |
thisgrp = grouplist[idx] |
thisgrp = grouplist[idx] |
|
print idx, thisgrp |
|
178 |
if thisgrp == 'unused': |
if thisgrp == 'unused': |
179 |
gcolors[thisgrp] = '#d8d8d8' |
gcolors[thisgrp] = '#d8d8d8' |
180 |
elif thisgrp == "offline": |
elif thisgrp == "offline": |
181 |
gcolors[thisgrp] = "#790ead" |
gcolors[thisgrp] = "#790ead" |
182 |
else: |
else: |
|
print "ranktype, ngr, idx, skipgroup", ranktype, ngr, idx, skipgroup |
|
183 |
gcolors[thisgrp] = colors[(ncol - ngr) + idx + skipgroup] |
gcolors[thisgrp] = colors[(ncol - ngr) + idx + skipgroup] |
184 |
|
|
185 |
if dbtype == 'queued': |
if dbtype == 'queued': |
260 |
acolor = "#790ead" |
acolor = "#790ead" |
261 |
skipgroup += 1 |
skipgroup += 1 |
262 |
else: |
else: |
|
print ncol, ngr, idx, skipgroup |
|
263 |
acolor = colors[(ncol - ngr) + idx ] |
acolor = colors[(ncol - ngr) + idx ] |
264 |
pdefstr = 'LINE3' ':' + group + acolor + ':' + group |
pdefstr = 'LINE3' ':' + group + acolor + ':' + group |
265 |
pdefstr = pdefstr + '\\n' |
pdefstr = pdefstr + '\\n' |
331 |
glist.remove('offline') |
glist.remove('offline') |
332 |
glist.append('offline') # makes it always appear at top of plot |
glist.append('offline') # makes it always appear at top of plot |
333 |
|
|
334 |
if opts.rankonly and prangedef['timetag'] != 'hr' : |
if opts.rankonly: # and prangedef['timetag'] != 'hr' : |
335 |
print "Ranked average running jobs over period", prangedef['timetag'] |
print "Ranked average running jobs over period", prangedef['timetag'] |
336 |
print "%10s %12d" % ('total', totval) |
print "%10s %12d" % ('total', totval) |
337 |
rank = 0 |
rank = 0 |
352 |
### a 'running' database and we don't want it for timetag hour. |
### a 'running' database and we don't want it for timetag hour. |
353 |
### fix this up here |
### fix this up here |
354 |
|
|
355 |
if dbtype == 'running' and prangedef['timetag'] != 'hr': |
if dbtype == 'running': # and prangedef['timetag'] != 'hr': |
356 |
percents = pgroup |
percents = pgroup |
357 |
else: |
else: |
358 |
percents = None |
percents = None |