mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
+ small AS-Stats fix
This commit is contained in:
parent
9080842d99
commit
ece9fbd841
5
README
5
README
@ -5,6 +5,11 @@ by Manuel Kasper, Monzoon Networks AG <mkasper@monzoon.net>
|
|||||||
|
|
||||||
Changes
|
Changes
|
||||||
-------
|
-------
|
||||||
|
vx.x Fix creation of new RRDs when multiple entries with the same
|
||||||
|
tag are present in the known links file
|
||||||
|
(spotted by Michel Moriniaux)
|
||||||
|
|
||||||
|
|
||||||
v1.35 Allow hyphens in link names.
|
v1.35 Allow hyphens in link names.
|
||||||
(contributed by Gareth Campling)
|
(contributed by Gareth Campling)
|
||||||
|
|
||||||
|
@ -232,8 +232,10 @@ sub getrrdfile {
|
|||||||
if (! -r $rrdfile) {
|
if (! -r $rrdfile) {
|
||||||
#print "$$: creating RRD file for AS $as\n";
|
#print "$$: creating RRD file for AS $as\n";
|
||||||
|
|
||||||
|
my %links = map { $_, 1 } values %knownlinks;
|
||||||
|
|
||||||
my @args;
|
my @args;
|
||||||
while (my ($key, $alias) = each(%knownlinks)) {
|
foreach my $alias (keys %links) {
|
||||||
push(@args, "DS:${alias}_in:ABSOLUTE:300:U:U");
|
push(@args, "DS:${alias}_in:ABSOLUTE:300:U:U");
|
||||||
push(@args, "DS:${alias}_out:ABSOLUTE:300:U:U");
|
push(@args, "DS:${alias}_out:ABSOLUTE:300:U:U");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user