summaryrefslogtreecommitdiffstats
path: root/bin/calibrate.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-24 22:25:56 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-04-24 22:25:56 (GMT)
commitbcdc9a412521ae0b9f9aea7997a880af6dbda2a6 (patch)
treebbdcd3f7da00dc5fcfa712bfaf148f392ac12fda /bin/calibrate.py
parented90f2420a34f20480311261cf8663803ca65b6e (diff)
downloadSCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.zip
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.gz
SCons-bcdc9a412521ae0b9f9aea7997a880af6dbda2a6.tar.bz2
Convert to Python 3.x division rules.
Diffstat (limited to 'bin/calibrate.py')
-rw-r--r--bin/calibrate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/calibrate.py b/bin/calibrate.py
index c5d45ce..f377869 100644
--- a/bin/calibrate.py
+++ b/bin/calibrate.py
@@ -20,6 +20,7 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+from __future__ import division
import optparse
import os
@@ -71,7 +72,7 @@ def main(argv=None):
good = 0
for v in vm.groups():
var, value = v.split('=', 1)
- value = int((int(value) * opts.max) / elapsed)
+ value = int((int(value) * opts.max) // elapsed)
os.environ[var] = str(value)
run += 1