[Trac-tickets] [The Trac Project] #2621: pretty_size(size) fails if
size == 512
The Trac Project
noreply at edgewall.com
Tue Jan 17 16:22:25 CST 2006
#2621: pretty_size(size) fails if size == 512
---------------------------------+------------------------------------------
Reporter: gregkempe at gmail.com | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: 0.9.3
Severity: normal | Keywords:
---------------------------------+------------------------------------------
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`
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2621>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list