OSSP CVS Repository

ossp - Difference in ossp-pkg/flow2rrd/flow2rrd.pl versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/flow2rrd/flow2rrd.pl 1.7 -> 1.8

--- flow2rrd.pl  2004/12/26 15:20:00     1.7
+++ flow2rrd.pl  2004/12/26 17:09:13     1.8
@@ -70,7 +70,7 @@
 my %getopt_spec = (
     'h|help'     => \$opt->{-help},
     'v|version'  => \$opt->{-version},
-    'c|config=s' => \$opt->{-config},
+    'f|config=s' => \$opt->{-config},
     's|store'    => \$opt->{-store},
     'g|graph'    => \$opt->{-graph},
     'c|cgi'      => \$opt->{-cgi},
@@ -82,7 +82,7 @@
           "available options are:\n" .
           "  -h,--help              print out this usage page\n" .
           "  -v,--version           print program version\n" .
-          "  -c,--config FILE       read this configuration file only\n" .
+          "  -f,--config FILE       read this configuration file only\n" .
           "  -s,--store             store NetFlow values into RRD\n" .
           "  -g,--graph             produce RRD graphs\n" .
           "  -c,--cgi               produce Web user interface\n";
@@ -801,7 +801,7 @@
         $graph =~ s|\@|\@$tmpfile:|s;
 
         #   generate graph image
-        my $rc = system("GATEWAY_INTERFACE=none $0 --graph $graph");
+        my $rc = system("GATEWAY_INTERFACE=none $0 --config=\"$opt->{-config}\" --graph $graph");
         if ($rc != 0) { # or not -s $tmpfile) {
             die "failed to generate graph image: $!";
         }

CVSTrac 2.0.1