From 4c74f032f64d4d66674a6fe6d541100d1181d93d Mon Sep 17 00:00:00 2001 From: "osdl.net!shemminger" Date: Wed, 16 Mar 2005 23:29:15 +0000 Subject: [PATCH] need to sum all lines on smp machine. (Logical change 1.171) --- misc/lnstat_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/lnstat_util.c b/misc/lnstat_util.c index 6ff3779a..f99e939e 100644 --- a/misc/lnstat_util.c +++ b/misc/lnstat_util.c @@ -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; }