]> sjero.net Git - wget/blobdiff - src/utils.c
Accept --bit option
[wget] / src / utils.c
index 509088b644a6566da06cdedb7818974c0f8c6c75..244b03cdebcbd0f6c78a8c3bfd95ca24ded475f0 100644 (file)
@@ -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;
+}
+
 \f
 /* Determine the width of the terminal we're running on.  If that's
    not possible, return 0.  */