@@ -91,7 +91,7 @@ class StatsGramplet(Gramplet):
 | 
				
			|||||||
                bytes += posixpath.getsize(fullname)
 | 
					                bytes += posixpath.getsize(fullname)
 | 
				
			||||||
                length = len(str(bytes))
 | 
					                length = len(str(bytes))
 | 
				
			||||||
                if bytes <= 99999:
 | 
					                if bytes <= 99999:
 | 
				
			||||||
                    mbytes = "less than 1"
 | 
					                    mbytes = _("less than 1")
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
                    mbytes = str(bytes)[:(length-6)]
 | 
					                    mbytes = str(bytes)[:(length-6)]
 | 
				
			||||||
            except OSError:
 | 
					            except OSError:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -214,7 +214,7 @@ class SummaryReport(Report):
 | 
				
			|||||||
                                 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 <= 99999:
 | 
				
			||||||
                    mbytes = "less than 1"
 | 
					                    mbytes = _("less than 1")
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
                    mbytes = str(size_in_bytes)[:(length-6)]
 | 
					                    mbytes = str(size_in_bytes)[:(length-6)]
 | 
				
			||||||
            except:
 | 
					            except:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user