mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
make firstCheckDelay actually the delay before the first check (take a measurement before firstCheckDelay)
This commit is contained in:
parent
6ee6a27100
commit
80d18524aa
@ -801,8 +801,10 @@ class ContainerLeakDetector(Job):
|
|||||||
self._pruneContainersJob = None
|
self._pruneContainersJob = None
|
||||||
|
|
||||||
if firstCheckDelay is None:
|
if firstCheckDelay is None:
|
||||||
firstCheckDelay = 60. * (15./2)
|
firstCheckDelay = 60. * 15.
|
||||||
self._nextCheckDelay = firstCheckDelay
|
# divide by two, since the first check just takes length measurements and
|
||||||
|
# doesn't check for leaks
|
||||||
|
self._nextCheckDelay = firstCheckDelay/2.
|
||||||
self._pruneTaskPeriod = config.GetFloat('leak-detector-prune-period', 60. * 30.)
|
self._pruneTaskPeriod = config.GetFloat('leak-detector-prune-period', 60. * 30.)
|
||||||
|
|
||||||
# main dict of id(container)->containerRef
|
# main dict of id(container)->containerRef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user