/[pdpsoft]/nl.nikhef.ndpf.groupviews/trunk/ndpf-gv-mkplots
ViewVC logotype

Diff of /nl.nikhef.ndpf.groupviews/trunk/ndpf-gv-mkplots

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3272 by templon, Wed Oct 9 09:53:58 2019 UTC revision 3273 by templon, Wed Oct 9 14:43:35 2019 UTC
# Line 175  def doplot(glist, dbtype, psize, timetag Line 175  def doplot(glist, dbtype, psize, timetag
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':
# Line 262  def doplot_wait(glist, dbtype, psize, ti Line 260  def doplot_wait(glist, dbtype, psize, ti
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'
# Line 334  def makeplots(prangedef): Line 331  def makeplots(prangedef):
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
# Line 355  def makeplots(prangedef): Line 352  def makeplots(prangedef):
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

Legend:
Removed from v.3272  
changed lines
  Added in v.3273

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