2
0
Эх сурвалжийг харах

__repr__: 4 digits for priority, handle empty list

Darren Ranalli 19 жил өмнө
parent
commit
2d7006f7e2

+ 3 - 1
direct/src/showbase/JobManager.py

@@ -164,6 +164,8 @@ class JobManager:
             # run through the jobs at this priority in the order that they will run
             # run through the jobs at this priority in the order that they will run
             for jobId in self._pri2jobIds[pri]:
             for jobId in self._pri2jobIds[pri]:
                 job = jobId2job[jobId]
                 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'
         s += '\n'
         return s
         return s