瀏覽代碼

show priorities and jobIds in repr

Darren Ranalli 18 年之前
父節點
當前提交
f619fd68bd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/showbase/JobManager.py

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

@@ -205,6 +205,6 @@ 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%4d: %s' % (jobId, job.getJobName())
+                    s += '\n%5d: %s (jobId %s)' % (pri, job.getJobName(), jobId)
         s += '\n'
         s += '\n'
         return s
         return s