Skip to content

Commit 6082c11

Browse files
committed
Fix pylint issue
1 parent 8cbb02c commit 6082c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def checkup(self, out):
755755
iterations_count = -1
756756
iteration_times = []
757757
gc_times = []
758-
late_compilation = False
758+
late_compilation = -1
759759
for i in range(len(lines)):
760760
line = lines[i]
761761

@@ -779,7 +779,7 @@ def checkup(self, out):
779779
mx.warn("Benchmark checkup: %s: excessive GC pause of %.8f (on %d iteration)" % (benchmark_name, gc_times[i], i))
780780
if warmup > iterations_count / 2:
781781
mx.warn("Benchmark checkup: %s: warmup detected too late (on %d iteration)" % (benchmark_name, warmup))
782-
if late_compilation:
782+
if late_compilation > 0:
783783
mx.warn("Benchmark checkup: %s: compilation detected too late (on %d iteration)" % (benchmark_name, late_compilation))
784784
iteration_times = []
785785
gc_times = []

0 commit comments

Comments
 (0)