]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Change name of tablefactor.
authorosdl.net!shemminger <osdl.net!shemminger>
Mon, 30 Aug 2004 20:54:46 +0000 (20:54 +0000)
committerosdl.net!shemminger <osdl.net!shemminger>
Mon, 30 Aug 2004 20:54:46 +0000 (20:54 +0000)
(Logical change 1.73)

tc/normal.c
tc/pareto.c
tc/paretonormal.c

index 8926b521d44386842234141ef77fc4b7ca68e580..6ec2600a59b5c78cb5961a46c729217bfd7ee31b 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/pkt_sched.h>
 
 #define TABLESIZE 16384
-#define TABLEFACTOR TCA_NETEM_TABLEFACTOR
+#define TABLEFACTOR NETEM_DIST_SCALE
 
 static double
 normal(double x, double mu, double sigma)
@@ -38,10 +38,8 @@ main(int argc, char **argv)
                table[i] = x;
        }
 
-       printf(
-"# This is the distribution table for the normal distribution.\n"
-       );
-
+       
+       printf("# This is the distribution table for the normal distribution.\n");
        for (i = n = 0; i < TABLESIZE; i += 4) {
                int value = (int) rint(table[i]*TABLEFACTOR);
                if (value < SHRT_MIN) value = SHRT_MIN;
index 61cd6298f306e4544a4418cf77eea078ea04157d..8aa647b62cd0bcff9545b3f9215a21685bbad142 100644 (file)
@@ -12,7 +12,7 @@
 
 static const double a=3.0;
 #define TABLESIZE      16384
-#define TABLEFACTOR    TCA_NETEM_TABLEFACTOR
+#define TABLEFACTOR    NETEM_DIST_SCALE
 
 int
 main(int argc, char **argv)
@@ -20,9 +20,7 @@ main(int argc, char **argv)
        int i, n;
        double dvalue;
 
-       printf(
-"# This is the distribution table for the pareto distribution.\n"
-       );
+       printf("# This is the distribution table for the pareto distribution.\n");
 
        for (i = 65536, n = 0; i > 0; i -= 16) {
                dvalue = (double)i/(double)65536;
index d6c5273d73b83937bc2f4bb7605c10d342b2be76..b5ce91523d31d8d6bc20e80a69ee582a774e78eb 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/pkt_sched.h>
 
 #define TABLESIZE      16384
-#define TABLEFACTOR    TCA_NETEM_TABLEFACTOR
+#define TABLEFACTOR    NETEM_DIST_SCALE
 
 static double
 normal(double x, double mu, double sigma)