Correct placement of right parenthesis.

(serial_pct)/100.0 is a typo - the parentheses should be around the entire percentage calculation, which makes much more sense when multiplying by the number of hosts (luckily BODMAS prevailed).
pull/7192/merge
hoettle 11 years ago committed by Michael DeHaan
parent cbf0bd6baf
commit 4243ce61b3

@ -642,7 +642,7 @@ class PlayBook(object):
# This is a percentage, so calculate it based on the
# number of hosts
serial_pct = int(play.serial.replace("%",""))
serial = int((serial_pct)/100.0 * len(all_hosts))
serial = int((serial_pct/100.0) * len(all_hosts))
# Ensure that no matter how small the percentage, serial
# can never fall below 1, so that things actually happen

Loading…
Cancel
Save