Commits

Nate Coraor committed 3bd28e1

Clarify output messages of set_user_disk_usage.py

  • Participants
  • Parent commits c62544f

Comments (0)

Files changed (1)

File scripts/set_user_disk_usage.py

 def quotacheck( sa_session, users ):
     sa_session.refresh( user )
     current = user.get_disk_usage()
-    print user.username, '<' + user.email + '> current usage:', str( current ) + ',',
+    print user.username, '<' + user.email + '> old usage:', str( current ) + ',',
     new = user.calculate_disk_usage()
     sa_session.refresh( user )
     # usage changed while calculating, do it again
     if new == current:
         print 'no change'
     else:
-        print 'new:', new
+        print 'new usage:', new
         if not options.dryrun:
             user.set_disk_usage( new )
             sa_session.add( user )