fix last
This commit is contained in:
parent
a111d8e648
commit
b5e898721d
@ -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…
x
Reference in New Issue
Block a user