__repr__: 4 digits for priority, handle empty list

This commit is contained in:
Darren Ranalli 2007-03-15 05:48:58 +00:00
parent 408590f29e
commit 2d7006f7e2

View File

@ -164,6 +164,8 @@ class JobManager:
# run through the jobs at this priority in the order that they will run
for jobId in self._pri2jobIds[pri]:
job = jobId2job[jobId]
s += '\n%3d: %s' % (jobId, job.getJobName())
s += '\n%4d: %s' % (jobId, job.getJobName())
else:
s += '\n no jobs running'
s += '\n'
return s