4331: typo

svn: r17496
This commit is contained in:
Jérôme Rapinat 2011-05-14 14:02:20 +00:00
parent 9e43103fd5
commit 3c955ed9ec
3 changed files with 3 additions and 3 deletions

View File

@ -1467,7 +1467,7 @@ class ViewManager(CLIManager):
try: try:
bytes += posixpath.getsize(fullname) bytes += posixpath.getsize(fullname)
length = len(str(bytes)) length = len(str(bytes))
if bytes <= 99999: if bytes <= 999999:
mbytes = "< 1" mbytes = "< 1"
else: else:
mbytes = str(bytes)[:(length-6)] mbytes = str(bytes)[:(length-6)]

View File

@ -90,7 +90,7 @@ class StatsGramplet(Gramplet):
try: try:
bytes += posixpath.getsize(fullname) bytes += posixpath.getsize(fullname)
length = len(str(bytes)) length = len(str(bytes))
if bytes <= 99999: if bytes <= 999999:
mbytes = _("less than 1") mbytes = _("less than 1")
else: else:
mbytes = str(bytes)[:(length-6)] mbytes = str(bytes)[:(length-6)]

View File

@ -213,7 +213,7 @@ class SummaryReport(Report):
size_in_bytes += posixpath.getsize( size_in_bytes += posixpath.getsize(
media_path_full(self.__db, media.get_path())) media_path_full(self.__db, media.get_path()))
length = len(str(size_in_bytes)) length = len(str(size_in_bytes))
if size_in_bytes <= 99999: if size_in_bytes <= 999999:
mbytes = _("less than 1") mbytes = _("less than 1")
else: else:
mbytes = str(size_in_bytes)[:(length-6)] mbytes = str(size_in_bytes)[:(length-6)]