mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
global var
This commit is contained in:
parent
6e27aae429
commit
4a472d98b8
@ -38,6 +38,7 @@ REPOS = [
|
||||
|
||||
# connect and read timeout value
|
||||
TIMEOUT_OPTION = (7, 10)
|
||||
total_size = 0
|
||||
|
||||
def sizeof_fmt(num, suffix='iB'):
|
||||
for unit in ['','K','M','G','T','P','E','Z']:
|
||||
@ -124,9 +125,9 @@ def main():
|
||||
task_queue = create_workers(args.workers)
|
||||
remote_filelist = []
|
||||
cleaning = False
|
||||
total_size = 0
|
||||
|
||||
def download(release, release_dir, tarball = False):
|
||||
global total_size
|
||||
|
||||
if tarball:
|
||||
url = release['tarball_url']
|
||||
|
Loading…
x
Reference in New Issue
Block a user