Permalink
Browse files

BUG: iterate over ints

  • Loading branch information...
fabianp committed Dec 19, 2012
1 parent 5e6e3e1 commit adfc6fd3a036d52707703dde8b1b1ab469a8caa7
Showing with 1 addition and 1 deletion.
  1. +1 −1 memory_profiler.py
View
@@ -79,7 +79,7 @@ def memory_usage(proc=-1, interval=.1, timeout=None, run_in_place=False):
ret = []
if timeout is not None:
- max_iter = timeout / interval
+ max_iter = int(timeout / interval)
elif isinstance(proc, int):
# external process and no timeout
max_iter = 1

0 comments on commit adfc6fd

Please sign in to comment.