Could you please apply this patch.
* Fix lnstat : First column should not be summed Thank you Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
This commit is contained in:
parent
08008c652d
commit
7339c0bb74
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue