MCPcopy Create free account
hub / github.com/cactus-compute/cactus / format_size

Function format_size

python/src/cli.py:1836–1839  ·  view source on GitHub ↗
(size_bytes)

Source from the content-addressed store, hash-verified

1834 return total
1835
1836 def format_size(size_bytes):
1837 if size_bytes >= 1_000_000_000:
1838 return f"{size_bytes / 1_073_741_824:.1f} GB"
1839 return f"{size_bytes / 1_048_576:.0f} MB"
1840
1841 # Group models by pipeline_tag preserving order
1842 groups = {}

Callers 1

cmd_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected