HomePhabricator

Use float division for the percentage

Authored by XZise on Jul 29 2017, 10:56 AM.

Description

Use float division for the percentage

The percentage of bad commits was using the integer division by default in
Python 2. With Python 3 the single slash will always use a float division and
importing division from future backports that to Python 2. This is fixing
the percentage always showing 0 %.

Change-Id: I2ef4a0c0dc8295a8e5633cd4731120b09d02221e

Details

Committed
XZiseJul 29 2017, 10:56 AM
Parents
rICMV9b3d907af76d: build: Test against py36 if available
Branches
Unknown
Tags
Unknown
ChangeId
I2ef4a0c0dc8295a8e5633cd4731120b09d02221e