From 0b3653bbdd70ff0c19edc5c59a794f4c4cd86f31 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Tue, 6 Jul 2021 15:45:15 +0200 Subject: migrate cpu-usage-over-time.py to python 3 The only change here is a fix for `sys.platform` on Linux. Python 3.3 changed the API to return "linux" instead of "linux2"/"linux3", so this commit uses `.startswith("python")` to make the code work on Python 3 without breaking Python 2. --- src/ci/scripts/collect-cpu-stats.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ci/scripts') diff --git a/src/ci/scripts/collect-cpu-stats.sh b/src/ci/scripts/collect-cpu-stats.sh index 08065431f98..853b4628fab 100755 --- a/src/ci/scripts/collect-cpu-stats.sh +++ b/src/ci/scripts/collect-cpu-stats.sh @@ -6,4 +6,4 @@ set -euo pipefail IFS=$'\n\t' -python src/ci/cpu-usage-over-time.py &> cpu-usage.csv & +python3 src/ci/cpu-usage-over-time.py &> cpu-usage.csv & -- cgit 1.4.1-3-g733a5