+ landing page: fix new postal address

+ add sampling rate option to netflow-asstatd.pl
This commit is contained in:
Manuel Kasper 2009-06-16 10:27:20 +00:00
parent 1055163748
commit 63f46903ae

View File

@ -21,6 +21,8 @@ if (! -d $rrdpath) {
my %knownlinks;
my $samplingrate = 1; # rate for sampled NetFlow (or = 1 for unsampled)
my $ascache = {};
my $ascache_lastflush = 0;
my $ascache_flush_interval = 60;
@ -168,7 +170,7 @@ sub flush_cache {
next if ($dsname !~ /_(in|out)$/);
push(@templatearg, $dsname);
push(@args, $value);
push(@args, $value * $samplingrate);
}
RRDs::update($rrdfile, "--template", join(':', @templatearg),