Skip to content

Commit 0e99b85

Browse files
committed
fix file count
1 parent 4cc941b commit 0e99b85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitingest/output_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def format_node_with_context_limit(
108108
# Update summary with final info
109109
if node.type == FileSystemNodeType.DIRECTORY:
110110
# Count how many files were actually included
111-
included_files = len([line for line in optimized_content.split('\n') if line.startswith('=' * 48)]) / 2
111+
included_files = int(len([line for line in optimized_content.split('\n') if line.startswith('=' * 48)]) / 2)
112112
summary += f"Files included: {included_files} (optimized for {max_tokens:,} tokens)\n"
113113
elif node.type == FileSystemNodeType.FILE:
114114
summary += f"File: {node.name}\n"

0 commit comments

Comments
 (0)