mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 15:35:45 +00:00
Update anaconda.py
This commit is contained in:
parent
ebd8b4440d
commit
161fd2a5be
@ -71,9 +71,9 @@ logging.basicConfig(
|
|||||||
def sizeof_fmt(num, suffix='iB'):
|
def sizeof_fmt(num, suffix='iB'):
|
||||||
for unit in ['','K','M','G','T','P','E','Z']:
|
for unit in ['','K','M','G','T','P','E','Z']:
|
||||||
if abs(num) < 1024.0:
|
if abs(num) < 1024.0:
|
||||||
return "%3.2f %s%s" % (num, unit, suffix)
|
return "%3.2f%s%s" % (num, unit, suffix)
|
||||||
num /= 1024.0
|
num /= 1024.0
|
||||||
return "%.2f %s%s" % (num, 'Y', suffix)
|
return "%.2f%s%s" % (num, 'Y', suffix)
|
||||||
|
|
||||||
def md5_check(file: Path, md5: str = None):
|
def md5_check(file: Path, md5: str = None):
|
||||||
m = hashlib.md5()
|
m = hashlib.md5()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user