Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof
Changeset: r76720:d602c99eb58b
Date: 2015-04-06 13:35 +0200
http://bitbucket.org/pypy/pypy/changeset/d602c99eb58b/
Log: disable passing seconds
diff --git a/pypy/module/_vmprof/interp_vmprof.py
b/pypy/module/_vmprof/interp_vmprof.py
--- a/pypy/module/_vmprof/interp_vmprof.py
+++ b/pypy/module/_vmprof/interp_vmprof.py
@@ -224,7 +224,8 @@
#
try:
period_usec = ovfcheck_float_to_int(period * 1000000.0 + 0.5)
- if period_usec <= 0:
+ if period_usec <= 0 or period_usec >= 1e9:
+ # we don't want seconds here at all
raise ValueError
except (ValueError, OverflowError):
raise OperationError(space.w_ValueError,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit