On Tue, May 16, 2006 at 06:15:13PM +0200, Jonas Davidsson wrote:
> Im getting some very strange numbers out of this now, number of states
> for example, are shown to be around seven thousand in the graph,
> while pfctl shows only 680. Most other values are just plain off.
That's via the remote TCP protocol, right? I think I botched the arg "-"
handling there. Can you try with the patch below?
Daniel
Index: pfstat.c
===================================================================
RCS file: /pub/cvsroot/pfstat/pfstat.c,v
retrieving revision 1.23
diff -u -r1.23 pfstat.c
--- pfstat.c 15 May 2006 07:16:18 -0000 1.23
+++ pfstat.c 16 May 2006 16:54:57 -0000
@@ -104,7 +104,7 @@
}
for (i = 0; i < maxcol; ++i) {
if (cols[i].type != type || cols[i].idx != idx ||
- strcmp(cols[i].arg, arg))
+ (strcmp(arg, "-") && strcmp(cols[i].arg, arg)))
continue;
cols[i].val = val;
}