need to sum all lines on smp machine.

(Logical change 1.171)
This commit is contained in:
osdl.net!shemminger 2005-03-16 23:29:15 +00:00
parent a7d21b265e
commit 4c74f032f6

View File

@ -53,7 +53,7 @@ static int scan_lines(struct lnstat_file *lf, int i)
gettimeofday(&lf->last_read, NULL);
for (j = 0; j < lf->num_fields; j++)
lf->fields[j].values[i] = strtoul(ptr, &ptr, 16);
lf->fields[j].values[i] += strtoul(ptr, &ptr, 16);
}
return num_lines;
}