mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-20 14:10:39 -04:00
shorten the fractional output of previous checkin (long task logging)
This commit is contained in:
parent
98efaf0f62
commit
3a169d14b1
@ -717,7 +717,7 @@ class TaskManager:
|
|||||||
# warn if the task took too long
|
# warn if the task took too long
|
||||||
if self.warnTaskDuration:
|
if self.warnTaskDuration:
|
||||||
if dt >= self.taskDurationWarningThreshold:
|
if dt >= self.taskDurationWarningThreshold:
|
||||||
TaskManager.notify.warning('task %s ran for %s seconds' % (
|
TaskManager.notify.warning('task %s ran for %.2f seconds' % (
|
||||||
task.name, dt))
|
task.name, dt))
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user