[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#534408: debian-policy: Installed-Size is defined as "kilobytes" but dpkg-gencontrol fills it in with kibibytes



Russ Allbery <rra@debian.org> writes:

> Agreed. At the time Policy was originally written, kilobyte nearly
> universally meant kibibyte in the industry. I'll change this to:
> 
>     The disk space is given as the integer value of the installed size
>     in bytes divided by 1024 and rounded (in other words, the size in
>     kibibytes).

If you're going that far, please perform one of the following:

    s/rounded/fractions rounded up/
    s/rounded/fractions rounded down/
    s/rounded/fractions rounded to the nearest whole number/

to disambiguate the calculation.

Also (pedantic mode ACTIVATE!), the placement of the parenthetical gives
the false impression that “size in kibibytes” necessarily includes
rounding. Instead, the “size in kibibytes” parenthetical should
immediately follow the “divided by 1024”, and the instruction to round
the value should be after both.

-- 
 \          “All good things are cheap; all bad are very dear.” —Henry |
  `\                                                     David Thoreau |
_o__)                                                                  |
Ben Finney


Reply to: