Commit 7339c0bb authored by shemminger's avatar shemminger

Could you please apply this patch.

	* Fix lnstat : First column should not be summed

Thank you
Signed-off-by: default avatarEric Dumazet <dada1@cosmosbay.com>
parent 08008c65
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment