]> git.pld-linux.org Git - packages/iproute2.git/blame - iproute2-rates-1024-fix.patch
- BR: db-devel
[packages/iproute2.git] / iproute2-rates-1024-fix.patch
CommitLineData
dd786d93
SP
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
0bb2f314 3@@ -125,11 +125,11 @@
dd786d93
SP
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;
aa63c42e 17
This page took 0.064135 seconds and 4 git commands to generate.