MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / get_cloud_upload_progress_bytes

Method get_cloud_upload_progress_bytes

daily/chinaUnicom.py:2236–2240  ·  view source on GitHub ↗
(self, file_size=0)

Source from the content-addressed store, hash-verified

2234 return seed_path
2235
2236 def get_cloud_upload_progress_bytes(self, file_size=0):
2237 progress_bytes = max(int(UNICOM_CLOUD_UPLOAD_PROGRESS_BYTES or 0), 1)
2238 if file_size and int(file_size) > 0:
2239 return min(int(file_size), progress_bytes)
2240 return progress_bytes
2241
2242 def parse_cloud_size_to_bytes(self, value):
2243 match = re.search(r'(\d+(?:\.\d+)?)\s*([KMGT])', str(value).upper())

Callers 2

doUpload_cloudMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected