Skip to content

Commit 42a71f4

Browse files
committed
Refactored the thread variable name
Signed-off-by: Piotr Aniola <piotr.aniola@ibm.com> Signed-off-by: Piotr Anioła <piotr.aniola@ibm.com>
1 parent cbe3e8f commit 42a71f4

File tree

2 files changed

+1516
-1
lines changed

2 files changed

+1516
-1
lines changed

src/javacore_analyser/ai/csv_dataset_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def main(input_files):
3838
data.append({'name': name, 'cpu_usage': cpu_usage, 'allocated_mem': allocated_mem, 'state': state,
3939
'blocking_threads': blocking_threads, 'stack_trace': stack_trace,
4040
'stack_trace_depth': stack_trace_depth})
41-
data.sort(key = lambda thread : len(thread['stack_trace']), reverse=True)
41+
data.sort(key = lambda java_thread : len(java_thread['stack_trace']), reverse=True)
4242
pd.DataFrame.from_records(data).to_csv('data.csv', index=False)
4343

4444
# Check if we can load data

0 commit comments

Comments
 (0)