mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix last
This commit is contained in:
parent
a111d8e648
commit
b5e898721d
1 changed files with 1 additions and 7 deletions
|
@ -69,13 +69,7 @@ def fsize(fsize_b):
|
||||||
if fsize_mb < 1000:
|
if fsize_mb < 1000:
|
||||||
return "%.1f %s" % (fsize_mb, _("MiB"))
|
return "%.1f %s" % (fsize_mb, _("MiB"))
|
||||||
fsize_gb = float (fsize_mb / 1024.0)
|
fsize_gb = float (fsize_mb / 1024.0)
|
||||||
if fsize_gb < 1000:
|
return "%.1f %s" % (fsize_gb, _("GiB"))
|
||||||
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"))
|
|
||||||
|
|
||||||
# Returns a formatted string representing a percentage
|
# Returns a formatted string representing a percentage
|
||||||
def fpcnt(dec):
|
def fpcnt(dec):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue