[package] update l7-protocols to 2009-05-28 (#5416)
[packages.git] / net / l7-protocols / patches / 101-testing-timeit.patch
index d272c27..6656889 100644 (file)
@@ -13,7 +13,7 @@
                echo you do not have dc, so I cannot add these numbers...
                exit 1
        fi
-@@ -14,7 +11,7 @@
+@@ -14,7 +11,7 @@ add()
        tot=0
  
        while read n; do
@@ -22,7 +22,7 @@
        done
  
        echo $tot seconds
-@@ -34,7 +31,7 @@
+@@ -34,7 +31,7 @@ extract()
  
  if [ ! $3 ] || [ $2 == "-h" ] || [ $2 == "--help" ]; then
        echo
@@ -31,7 +31,7 @@
        echo
        echo \"kernel\" uses the kernel pattern and library
        echo \"userspace\" uses userspace pattern and library
-@@ -72,12 +69,12 @@
+@@ -72,12 +69,12 @@ echo Timing $1
  if [ $3 == "all" ]; then
        echo Using all characters
        if [ $2 == "kernel" ]; then
@@ -46,7 +46,7 @@
                        echo $speedprog failed. > /dev/stderr
                        exit 1
                fi
-@@ -85,12 +82,12 @@
+@@ -85,12 +82,12 @@ if [ $3 == "all" ]; then
  elif [ $3 == "print" ]; then
        echo Using only printable characters
        if [ $2 == "kernel" ]; then
@@ -61,7 +61,7 @@
                        echo $speedprog failed. > /dev/stderr
                        exit 1
                fi
-@@ -107,12 +104,12 @@
+@@ -107,12 +104,12 @@ elif [ $3 == "real" ]; then
                                printf $f\\t
                                #echo `extract $1`
                                if [ $2 == "kernel" ]; then
@@ -76,7 +76,7 @@
                                                echo $speedprog failed. > /dev/stderr
                                                exit 1
                                        fi
-@@ -123,12 +120,12 @@
+@@ -123,12 +120,12 @@ elif [ $3 == "real" ]; then
                for f in data/*; do
                        printf $f\\t
                        if [ $2 == "kernel" ]; then
@@ -91,7 +91,7 @@
                                        echo $speedprog failed. > /dev/stderr
                                        exit 1
                                fi
-@@ -137,7 +134,7 @@
+@@ -137,7 +134,7 @@ elif [ $3 == "real" ]; then
        fi
  
        printf Total:\