mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-03 12:26:45 +00:00
need to sum all lines on smp machine.
(Logical change 1.171)
This commit is contained in:
parent
a7d21b265e
commit
4c74f032f6
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user