Skip to content

Commit 9d8c3f7

Browse files
lhoupertCopilot
andauthored
Update scripts/change_storage_tier.py
Co-authored-by: Copilot <[email protected]>
1 parent 8c4a363 commit 9d8c3f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/change_storage_tier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def process_stac_item(
349349
# Log progress every 100 objects or at the end
350350
if objects_changed % 100 == 0 or objects_changed == len(objects_to_change):
351351
logger.info(
352-
f" Progress: {stats['processed']}/{total_objects} objects ({stats['processed']*100//total_objects}%)"
352+
f" Progress: {stats['processed']}/{total_objects} objects ({stats['processed']*100//max(total_objects, 1)}%)"
353353
)
354354

355355
# Summary

0 commit comments

Comments
 (0)