Comment 1 for bug 240073

Revision history for this message
Kasper Meerts (kasperm-deactivatedaccount) wrote : Ifconfig uses incorrect units

Binary package hint: net-tools

The manpage of ifconfig clearly states:

       Since net-tools 1.60-4 ifconfig is printing byte counters and human
       readable counters with IEC 60027-2 units. So 1 KiB are 2^10 byte. Note,
       the numbers are truncated to one decimal (which can by quite a large
       error if you consider 0.1 PiB is 112.589.990.684.262 bytes :)

Still, my current ifconfig gives me:

wlan0 Link encap:Ethernet HWaddr 00:08:d3:05:23:0c
          inet addr:172.19.3.3 Bcast:172.19.255.255 Mask:255.255.0.0
          inet6 addr: fe80::208:d3ff:fe05:230c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:2592640 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2322789 errors:998 dropped:998 overruns:0 carrier:0
          collisions:105271 txqueuelen:1000
          RX bytes:2617519809 (2.4 GB) TX bytes:969817396 (924.8 MB)
          Interrupt:17 Base address:0x8000

2617519809 bytes means 2.6 GB or 2.4 GiB. But 2.4 GB is completely incorrect.
Either fix the package or fix the man-page. I included a patch that should give correct behavior.