]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-99905: Fix output of misses in summarize_stats.py execution counts (GH-99906)
authorMichael Droettboom <mdboom@gmail.com>
Wed, 30 Nov 2022 19:17:08 +0000 (14:17 -0500)
committerGitHub <noreply@github.com>
Wed, 30 Nov 2022 19:17:08 +0000 (19:17 +0000)
This was an indentation error introduced in 2844aa6a

Tools/scripts/summarize_stats.py

index 8d91bda5a43a0d24e87a9947148804c82ef37c43..9c098064fe540387f293be8a58d6574374776a84 100644 (file)
@@ -317,11 +317,11 @@ def calculate_execution_counts(opcode_stats, total):
     for (count, name, miss) in counts:
         cumulative += count
         if miss:
-            miss =  f"{100*miss/count:0.1f}%"
+            miss = f"{100*miss/count:0.1f}%"
         else:
             miss = ""
-            rows.append((name, count, f"{100*count/total:0.1f}%",
-                         f"{100*cumulative/total:0.1f}%", miss))
+        rows.append((name, count, f"{100*count/total:0.1f}%",
+                     f"{100*cumulative/total:0.1f}%", miss))
     return rows
 
 def emit_execution_counts(opcode_stats, total):