The culprit is that fritzstatus defines str_max_bit_rate as
format_rate(upstream, unit='bits'),
format_rate(downstream, unit ='bits')
and format_rate is defined as
return format_num(num, unit=unit) + '/s'
and format_num converts in power of 1024 units.
Thus the classical MB vs MiB confusion, see Mebibyte.
The binary units are used for addressable items in binary systems. Memory size is in general measured in these units.
In all other cases decimal units are used. Bit rates, which are frequencies, are always expressed in decimal units, so 1 Mbps always means 1000*1000 bits/sec and not 1024*1024 bits/sec.
So usage of format_num in fritzconnection should imho be reviewed.
On my system
fritzstatus
giveswhile my FrizBox GUI states
The culprit is that
fritzstatus
definesstr_max_bit_rate
asand
format_rate
is defined asand
format_num
converts in power of 1024 units.Thus the classical MB vs MiB confusion, see Mebibyte.
The binary units are used for addressable items in binary systems. Memory size is in general measured in these units.
In all other cases decimal units are used. Bit rates, which are frequencies, are always expressed in decimal units, so 1 Mbps always means 1000*1000 bits/sec and not 1024*1024 bits/sec.
So usage of
format_num
in fritzconnection should imho be reviewed.