X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Futils.c;h=244b03cdebcbd0f6c78a8c3bfd95ca24ded475f0;hp=509088b644a6566da06cdedb7818974c0f8c6c75;hb=b9b510ca5f9c13f8d3f129faae61f324f5c816d5;hpb=04f29f2f08da21cbcebbf86fe98de0522f024c64 diff --git a/src/utils.c b/src/utils.c index 509088b6..244b03cd 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1825,6 +1825,17 @@ number_to_static_string (wgint number) ringpos = (ringpos + 1) % RING_SIZE; return buf; } + +/* Converts the byte to bits format if --bits option is enabled + */ +wgint +convert_to_bits (wgint num) +{ + if (opt.bits_fmt) + return num * 8; + return num; +} + /* Determine the width of the terminal we're running on. If that's not possible, return 0. */