mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
+ landing page: fix new postal address
+ add sampling rate option to netflow-asstatd.pl
This commit is contained in:
parent
1055163748
commit
63f46903ae
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user