/[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 2631 by templon, Wed May 22 14:50:02 2013 UTC revision 2632 by templon, Tue Jun 11 09:00:23 2013 UTC
# Line 142  for r in rl: Line 142  for r in rl:
142    
143  rtot = sum(runningjobs.values())  rtot = sum(runningjobs.values())
144  totslots = int(open(DATADIR+'nslots').read())  totslots = int(open(DATADIR+'nslots').read())
145    if totslots < rtot:
146        print "Total slots from nslots file lower than total running jobs"
147        print totslots, "<", rtot
148        print "Setting total slots to total running jobs"
149        totslots = rtot
150  offlineslots = int(open(DATADIR+'oslots').read())  offlineslots = int(open(DATADIR+'oslots').read())
151  runningjobs['offline'] = offlineslots  runningjobs['offline'] = offlineslots
152  runningjobs['unused'] = totslots - offlineslots - rtot  runningjobs['unused'] = totslots - offlineslots - rtot

Legend:
Removed from v.2631  
changed lines
  Added in v.2632

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