Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Jun 19, 2024
1 parent 8ecec15 commit f62836c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hogvm/python/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def pop_stack():
return BytecodeResult(result=None, stdout=stdout, bytecode=bytecode)

def check_timeout():
if time.time() - start_time > timeout.seconds and not debug:
raise HogVMException(f"Execution timed out after {timeout.seconds} seconds. Performed {ops} ops.")
if time.time() - start_time > timeout.total_seconds() and not debug:
raise HogVMException(f"Execution timed out after {timeout.total_seconds()} seconds. Performed {ops} ops.")

while True:
ops += 1
Expand Down

0 comments on commit f62836c

Please sign in to comment.