ajrockefeller / openfpc

Automatically exported from code.google.com/p/openfpc
0 stars 0 forks source link

timestamps not processed when using a bpf query with openfpc-client #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Latest version (0.8)

when running openfpc-client -a fetch --bpf "host xxx.xxx.xxx.xx" --stime xxxx 
--etime xxxx no packets are returned.

I've included the patch that I used the fix the problem for our use case:

--- /tmp/Common.orig    2014-02-27 19:32:39.122592468 +0000
+++ /tmp/Common.pm  2014-02-27 19:33:26.995377933 +0000
@@ -573,6 +573,9 @@
                return(\%request);
            }
            $request{'bpf'} = $r->{'bpf'}{'val'};
+                        $request{'timestamp'} = $r->{'timestamp'}{'val'};
+                        $request{'stime'} = $r->{'stime'}{'val'};
+                        $request{'etime'} = $r->{'etime'}{'val'};
        } elsif ($r->{'logline'}{'val'}) {
            wlog("DEBUG: Found logline requested as $r->{'logline'}{'val'}\n") if $debug;

Original issue reported on code.google.com by Michael....@gmail.com on 27 Feb 2014 at 7:36

GoogleCodeExporter commented 8 years ago
Thanks, looks good to me.

Committed revision 357.

Original comment by leon.j.w...@gmail.com on 2 Mar 2014 at 1:29