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

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

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

revision 2636 by templon, Tue Jun 11 09:43:25 2013 UTC revision 2637 by templon, Thu Jun 27 13:05:31 2013 UTC
# Line 7  Line 7 
7  #   program runs qstat, parses the output to find number of waiting and running jobs per group  #   program runs qstat, parses the output to find number of waiting and running jobs per group
8  #   this is added to an RRD database  #   this is added to an RRD database
9    
10    DEBUG = 1
11  import os  import os
12  import tempfile  import tempfile
13  qsfname = tempfile.mktemp(".txt","qsmf",os.environ['HOME']+"/tmp")  qsfname = tempfile.mktemp(".txt","qsmf",os.environ['HOME']+"/tmp")
# Line 207  else: Line 208  else:
208          if DEBUG: print 'used time since last start'          if DEBUG: print 'used time since last start'
209      else:      else:
210          rollover = 600 # if nothing seen, all we know is, not in last ten minutes (keep_completed)          rollover = 600 # if nothing seen, all we know is, not in last ten minutes (keep_completed)
211          if DEBUG: print 'set to 600, no comp_times seen'          if DEBUG:
212                print 'set to 600, no comp_times seen'
213                for tj in newjlist:
214                    print tj
215    
216  # print "len(stl), rollover:", len(stl), rollover  # print "len(stl), rollover:", len(stl), rollover
217  rrdtool.update(DATADIR + "rollover" + '.waittime.rrd',  rrdtool.update(DATADIR + "rollover" + '.waittime.rrd',

Legend:
Removed from v.2636  
changed lines
  Added in v.2637

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