Bug 14333

Summary: Display small/large image file sizes with better precision
Product: WebKit Reporter: Glan Thomas <glan>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Enhancement CC: dev+webkit
Priority: P3 Keywords: InRadar
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch dev+webkit: review-

Description Glan Thomas 2007-06-23 04:20:42 PDT
When viewing a 100KB+ image in the Web Inspector the file size is displayed in exponent format.
For example a 320KB image is shown as 3.2e+2KB
Comment 1 Matt Lilek 2007-07-12 23:49:58 PDT
Created attachment 15497 [details]
Patch

Just use toFixed since an image that's exactly .00 is rare and it's not the end of the world if we show trailing zeros.
Comment 2 Alexey Proskuryakov 2007-07-13 01:18:58 PDT
IMO it would be even better if tiny sizes (like 119 bytes) could be displayed properly.
Comment 3 Matt Lilek 2007-07-13 16:40:49 PDT
Comment on attachment 15497 [details]
Patch

I'm gonna rework this
Comment 4 Matt Lilek 2007-12-26 21:05:31 PST
This bug has actually been fixed, retitling to reflect the suggestion in comment #2.
Comment 5 Adam Roben (:aroben) 2008-01-29 11:15:27 PST
<rdar://problem/5712932>
Comment 6 Timothy Hatcher 2008-04-10 16:59:04 PDT
Landed a fix in r31789.