Integers are not converted to floats during division in Python 2 which results in incorrect IPC values. Fix by switching to new division behavior.
Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all
Unified · Split
| @@ -11,7 +11,7 @@ · 10 unmodified lines | |||
| 11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | 11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 12 | # more details. | 12 | # more details. |
| 13 | 13 | ||
| 14 | from __future__ import print_function | 14 | from __future__ import division, print_function |
| 15 | 15 | ||
| 16 | import io | 16 | import io |
| 17 | import os | 17 | import os |