A pipe bandwidth of 10MBits/s should probably

be understood as    10Mbits/s not 10MBytes/s.

Submitted by:	Gavin McCullagh <gavin.mccullagh@nuim.ie>
MFC after:	1 week
This commit is contained in:
David Malone 2006-08-23 14:29:18 +00:00
parent 9d26d008ac
commit cb0bfd9b89
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161550

View File

@ -3424,7 +3424,8 @@ config_pipe(int ac, char **av)
end++;
p.bandwidth *= 1000000;
}
if (*end == 'B' ||
if ((*end == 'B' &&
_substrcmp2(end, "Bi", "Bit/s") != 0) ||
_substrcmp2(end, "by", "bytes") == 0)
p.bandwidth *= 8;
if (p.bandwidth < 0)