the K/M/G/T units imply factors of 1000, so make the code
match. (the alternative would be to change the units to
Ki/Mi/Gi/Ti.) mhlist output might someday be configurable
using mh-format, in which case the user will be able to choose.
to evaluate the
\*(lqnative\*(rq (decoded) format of each content prior to listing.
This provides an accurate count at the expense of a small delay.
to evaluate the
\*(lqnative\*(rq (decoded) format of each content prior to listing.
This provides an accurate count at the expense of a small delay.
+In either case, sizes will be expressed using SI prefix abbreviations
+(K/M/G/T), which are based on factors of 1000.
size = ct->c_end - ct->c_begin;
/* find correct scale for size (Kilo/Mega/Giga/Tera) */
size = ct->c_end - ct->c_begin;
/* find correct scale for size (Kilo/Mega/Giga/Tera) */
- for (cp = " KMGT"; size > 9999; size >>= 10)
+ for (cp = " KMGT"; size > 9999; size /= 1000)