1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/1aaa9f0338fb/ changeset: 1aaa9f0338fb user: natefoo date: 2011-08-16 18:02:34 summary: Make nice_size able to display terabytes, and set a default cutoff for users in the user disk usage reports. affected #: 2 files (7 bytes) --- a/lib/galaxy/util/__init__.py Tue Aug 16 10:40:10 2011 -0400 +++ b/lib/galaxy/util/__init__.py Tue Aug 16 12:02:34 2011 -0400 @@ -528,7 +528,7 @@ >>> nice_size(100000000) '95.4 Mb' """ - words = [ 'bytes', 'Kb', 'Mb', 'Gb' ] + words = [ 'bytes', 'Kb', 'Mb', 'Gb', 'Tb' ] try: size = float( size ) except: --- a/lib/galaxy/webapps/reports/controllers/users.py Tue Aug 16 10:40:10 2011 -0400 +++ b/lib/galaxy/webapps/reports/controllers/users.py Tue Aug 16 12:02:34 2011 -0400 @@ -120,7 +120,7 @@ @web.expose def user_disk_usage( self, trans, **kwd ): message = util.restore_text( kwd.get( 'message', '' ) ) - user_cutoff = int( kwd.get( 'user_cutoff', 0 ) ) + user_cutoff = int( kwd.get( 'user_cutoff', 60 ) ) # disk_usage isn't indexed users = sorted( trans.sa_session.query( galaxy.model.User ).all(), key=operator.attrgetter( 'disk_usage' ), reverse=True ) if user_cutoff: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.