Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#2621 closed defect (fixed)

pretty_size(size) fails if size == 512

Reported by: gregkempe@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.9.4
Component: general Version: 0.9.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (1)

comment:1 by Christian Boos, 18 years ago

Milestone: 0.9.4
Resolution: fixed
Status: newclosed

Fixed in r2797 and r2798, thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.