Skip to content

Commit

Permalink
Update pyperf/_bench.py
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
mdboom and vstinner authored Dec 19, 2024
1 parent 56dfad1 commit 980003e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyperf/_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def required_nprocesses(self):
W = 0.01

# (4Z²σ²)/(W²)
return int(math.ceil((4 * Z ** 2 * sigma ** 2) / (W ** 2)))
return math.ceil((4 * Z ** 2 * sigma ** 2) / (W ** 2))

def percentile(self, p):
if not (0 <= p <= 100):
Expand Down

0 comments on commit 980003e

Please sign in to comment.