mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 08:33:56 +00:00
fix last
This commit is contained in:
parent
a111d8e648
commit
b5e898721d
@ -69,13 +69,7 @@ def fsize(fsize_b):
|
||||
if fsize_mb < 1000:
|
||||
return "%.1f %s" % (fsize_mb, _("MiB"))
|
||||
fsize_gb = float (fsize_mb / 1024.0)
|
||||
if fsize_gb < 1000:
|
||||
return "%.1f %s" % (fsize_gb, _("GiB"))
|
||||
fsize_tb = float (fsize_gb / 1024.0)
|
||||
if fsize_tb < 1000:
|
||||
return "%.1f %s" % (fsize_tb, _("TiB"))
|
||||
fsize_pb = float (fsize_tb / 1024.0)
|
||||
return "%.1f %s" % (fsize_pb, _("PiB"))
|
||||
return "%.1f %s" % (fsize_gb, _("GiB"))
|
||||
|
||||
# Returns a formatted string representing a percentage
|
||||
def fpcnt(dec):
|
||||
|
Loading…
x
Reference in New Issue
Block a user