Skip to content

Commit 705bc50

Browse files
author
Ethan Lee
committed
Fix tuple error
Signed-off-by: Ethan Lee <[email protected]>
1 parent 6abc8ce commit 705bc50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fosslight_dependency/run_dependency_scanner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,10 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
249249
node_count_threshold = 20
250250
node_count = len(scan_item.file_items[_PKG_NAME])
251251
if node_count > node_count_threshold:
252-
new_size = graph_size + (node_count * growth_factor_per_node)
252+
new_size = tuple(x + (node_count * growth_factor_per_node) for x in new_size)
253253
else:
254254
new_size = graph_size
255+
new_size = tuple((((x + 99) // 100) * 100) for x in new_size)
255256
converter.save(graph_path, new_size)
256257
logger.info(f"Output graph image file: {graph_path}")
257258
except Exception as e:

0 commit comments

Comments
 (0)