Skip to content

Commit

Permalink
allow re-entering the root node
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Aug 20, 2018
1 parent ffb79f9 commit 4f568a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fpylll/tools/bkz_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ def reenter(self, **kwds):
"""

if self.current is None:
# we exited the root node
self.current = self.trace
node = self.current
node.data["cputime"] = node.data.get("cputime", 0) + Accumulator(-time.clock(), repr="sum", count=False)
node.data["walltime"] = node.data.get("walltime", 0) + Accumulator(-time.time(), repr="sum", count=False)
Expand Down

0 comments on commit 4f568a2

Please sign in to comment.