Author: Maciej Fijalkowski <[email protected]>
Branch: vmprof
Changeset: r76724:dbd25781d4a2
Date: 2015-04-06 15:31 +0200
http://bitbucket.org/pypy/pypy/changeset/dbd25781d4a2/

Log:    ups, micro = 1e-6

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,7 @@
     #
     try:
         period_usec = ovfcheck_float_to_int(period * 1000000.0 + 0.5)
-        if period_usec <= 0 or period_usec >= 1e9:
+        if period_usec <= 0 or period_usec >= 1e6:
             # we don't want seconds here at all
             raise ValueError
     except (ValueError, OverflowError):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to