]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Could you please apply this patch.
authorshemminger <shemminger>
Thu, 1 Sep 2005 18:11:03 +0000 (18:11 +0000)
committershemminger <shemminger>
Thu, 1 Sep 2005 18:11:03 +0000 (18:11 +0000)
* Fix lnstat : First column should not be summed

Thank you

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
misc/lnstat_util.c

index 4127100dbe36462c7efc69f66e44e1fc79f152a3..59c5e9648adb30ebfc090a060e4a0db45bff9fac 100644 (file)
@@ -55,7 +55,7 @@ static int scan_lines(struct lnstat_file *lf, int i)
                for (j = 0; j < lf->num_fields; j++) {
                        unsigned long f = strtoul(ptr, &ptr, 16);
                        if (j == 0) 
-                               lf->fields[j].values[i] += f;
+                               lf->fields[j].values[i] = f;
                        else
                                lf->fields[j].values[i] += f;
                }