Bug 14333 - Display small/large image file sizes with better precision
Summary: Display small/large image file sizes with better precision
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P3 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-06-23 04:20 PDT by Glan Thomas
Modified: 2008-04-10 16:59 PDT (History)
1 user (show)

See Also:


Attachments
Patch (1.25 KB, patch)
2007-07-12 23:49 PDT, Matt Lilek
dev+webkit: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.