firebug/firebug — pull request #32 by dubek (2012-08-17 19:38:50+00:00)
Title: Don't round sizes of cookies under 8 KB to whole KB

When displaying sizes of cookies above 1 KB, the sizes are rounded upwards (ceiling) to the next whole KB. This causes the following problematic behaviour:

* Cookie size 1023 bytes: displayed as "1023 B"
* Cookie size 1024 bytes: displayed as "1 KB"
* Cookie size 1025 bytes: displayed as "2 KB"

Of course the last case is very inaccurate.

Since most cookies are small, and accuracy is important in these scales, the logic was changed so that cookie sizes are displayed in bytes for all cookies under 8 KB (8191 bytes or less).

Cookies sizes from 8 KB to 1 MB will be displayed in KB as was before.