commit/galaxy-central: natefoo: Fix reporting in the set_user_disk_usage.py script.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/f16e60e79638/ changeset: f16e60e79638 user: natefoo date: 2012-10-03 19:40:54 summary: Fix reporting in the set_user_disk_usage.py script. affected #: 1 file diff -r 82ef383af0e1135d300afe67aa767f73a3a781ae -r f16e60e79638a9ebe18f9daedb3d82ce405a1986 scripts/set_user_disk_usage.py --- a/scripts/set_user_disk_usage.py +++ b/scripts/set_user_disk_usage.py @@ -90,10 +90,10 @@ if new in ( current, None ): print 'none' else: - op = '-' if new > current: - op = '+' - print '%s%s' % ( op, nice_size( new ) ) + print '+%s' % ( nice_size( new - current ) ) + else: + print '-%s' % ( nice_size( current - new ) ) if not options.dryrun and engine != 'postgres': user.set_disk_usage( new ) sa_session.add( user ) 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.
participants (1)
-
Bitbucket