1

When I do this command:

wget --report-speed=type

they only type it accepts is bits. It won't have numbers, kilobits / kilobytes or bytes.

The help page (wget --help) says:

--report-speed=TYPE   Output bandwidth as TYPE.  TYPE can be bits.

suggesting that they TYPE can be something else?

What options does it take that I haven't found, and (if this option doesn't do this) how can I force the speed to be displayed as bytes or Kilobytes.

Tim
  • 123
  • 1
  • 1
  • 9

2 Answers2

8

Actually wget reports speed by default, and it would be in kilobytes/megabytes:

2017-07-08 23:33:45 (362 KB/s) - ‘openwrt-ar71xx-mikrotik-vmlinux-lzma.elf.4’ saved [1230693/1230693]

In case you would set an option '--report-speed=bits' it would report speed in megabits/kilobits, like

2017-07-08 23:33:21 (2.74 Mb/s) - ‘openwrt-ar71xx-mikrotik-vmlinux-lzma.elf.2’ saved [1230693/1230693]
pulse
  • 191
  • 1
  • 1
6

This is a rather new addition to wget (1.13.4 doesn't have it) and there is no other value for that option, the manual is quite clear:

‘--report-speed=type’

    Output bandwidth as type. The only accepted value is ‘bits’. 
Anthon
  • 78,313
  • 42
  • 165
  • 222
  • Ahh the help page just said *type* **can** be `bits`, making it sound like there were more... – Tim Dec 07 '14 at 13:21
  • I think they put this in expecting more types in future releases (maybe it is time to make feature request at the mailing list ;-) ). – Anthon Dec 07 '14 at 13:24
  • Yes that would be nice - I'm grepping the speed and want to always be guaranteed that the speed I will get is KB/s so I can graph it... – Tim Dec 07 '14 at 13:25
  • 2
    This at least is what most ISPs use bits...it should default to this. – chovy Sep 17 '16 at 06:52