ia64/xen-unstable
changeset 6377:63cc61fafb28
Add a newline to the fscanf format string used to parse /proc/net/dev entries, to avoid an additional read and bad-entry-skip just to eat the newline.
author | josht@us.ibm.com |
---|---|
date | Tue Aug 23 00:28:50 2005 +0100 (2005-08-23) |
parents | f26884f4e6f1 |
children | 79df8d5fc424 |
files | tools/xenstat/libxenstat/src/xenstat.c |
line diff
1.1 --- a/tools/xenstat/libxenstat/src/xenstat.c Tue Aug 23 00:28:43 2005 +0100 1.2 +++ b/tools/xenstat/libxenstat/src/xenstat.c Tue Aug 23 00:28:50 2005 +0100 1.3 @@ -505,7 +505,7 @@ static int xenstat_collect_networks(xens 1.4 unsigned int domid; 1.5 int ret = fscanf(handle->procnetdev, 1.6 "vif%u.%u:%llu%llu%llu%llu%*u%*u%*u%*u" 1.7 - "%llu%llu%llu%llu%*u%*u%*u%*u", 1.8 + "%llu%llu%llu%llu%*u%*u%*u%*u\n", 1.9 &domid, &net.id, 1.10 &net.tbytes, &net.tpackets, &net.terrs, 1.11 &net.tdrop,