Skip to content

Commit 980003e

Browse files
mdboomvstinner
andauthored
Update pyperf/_bench.py
Co-authored-by: Victor Stinner <[email protected]>
1 parent 56dfad1 commit 980003e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyperf/_bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def required_nprocesses(self):
463463
W = 0.01
464464

465465
# (4Z²σ²)/(W²)
466-
return int(math.ceil((4 * Z ** 2 * sigma ** 2) / (W ** 2)))
466+
return math.ceil((4 * Z ** 2 * sigma ** 2) / (W ** 2))
467467

468468
def percentile(self, p):
469469
if not (0 <= p <= 100):

0 commit comments

Comments
 (0)