Edgewall Software
Modify

Ticket #2621 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

pretty_size(size) fails if size == 512

Reported by: gregkempe@… Owned by: jonas
Priority: normal Milestone: 0.9.4
Component: general Version: 0.9.3
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description

pretty_size() in source:trunk/trac/util.py fails if size is exactly 512, because i == 0 and so the subscript into units[] fails.

Suggest change if size < jump to if size <= jump

Attachments

Change History

comment:1 Changed 6 years ago by cboos

  • Milestone set to 0.9.4
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r2797 and r2798, thanks!

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.