~jelmer/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/util.py

  • Committer: Cruz Julian Bishop
  • Date: 2012-04-28 00:57:06 UTC
  • mto: This revision was merged to the branch mainline in revision 481.
  • Revision ID: cruzjbishop@gmail.com-20120428005706-o7ytixf6fed1u6xu
Show number of bytes up to a total of 1023, not up to 511

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
    size = int(size)
334
334
    if (size == 0) and (min_divisor == 0):
335
335
        return 'Empty'
336
 
    if (size < 512) and (min_divisor == 0):
 
336
    if (size < 1024) and (min_divisor == 0):
337
337
        return str(size) + ' bytes'
338
338
 
339
339
    if (size >= P95_GIG) or (min_divisor >= GIG):