fix conversion error in master.py

This commit is contained in:
Thomas S Hatch 2011-03-24 23:06:37 -06:00
parent fb077cef5c
commit 13d8e4220a

View File

@ -38,7 +38,7 @@ class Master(object):
keep = int(time.time()) - diff
jid_root = os.path.join(self.opts['cachedir'], 'jobs')
for jid in os.listdir(jid_root):
if int(jid) < keep:
if int(jid.split('.')[0]) < keep:
shutil.rmtree(os.path.join(jid_root, jid))
def start(self):