]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2-rates-1024-fix.patch
- merged into iproute2-2.6.10-ss050124 release.
[packages/iproute2.git] / iproute2-rates-1024-fix.patch
1 --- iproute2-2.6.8/tc/tc_util.c 2004-07-02 17:53:03.000000000 +0000
2 +++ iproute2-2.6.8.new/tc/tc_util.c     2004-07-25 17:40:46.427882688 +0000
3 @@ -125,11 +125,11 @@
4         else if (strcasecmp(p, "gibit") == 0)
5                 bps *= 1024*1024*1024/8;
6         else if (strcasecmp(p, "kbps") == 0)
7 -               bps *= 1024;
8 +               bps *= 1000;
9         else if (strcasecmp(p, "mbps") == 0)
10 -               bps *= 1024*1024;
11 +               bps *= 1000*1000;
12         else if (strcasecmp(p, "gbps") == 0)
13 -               bps *= 1024*1024*1024;
14 +               bps *= 1000*1000*1000;
15         else if (strcasecmp(p, "bps") != 0)
16                 return -1;
17  
This page took 0.035788 seconds and 3 git commands to generate.